Found by tlsfuzzer.
ok beck@
-/* $OpenBSD: ssl_clnt.c,v 1.110 2021/09/02 14:41:03 beck Exp $ */
+/* $OpenBSD: ssl_clnt.c,v 1.111 2021/09/03 13:18:17 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
goto fatal_err;
}
+ if (CBS_len(&cbs) != 0)
+ goto decode_err;
+
/*
* Determine if we need to see RI. Strictly speaking if we want to
* avoid an attack we should *always* see RI even on initial server