mirror of
https://github.com/openssl/openssl.git
synced 2024-12-16 21:43:42 +08:00
apps/s_client.c: harden ldap_ExtendedResponse_parse.
Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
parent
312e9387fd
commit
8b0d424240
@ -3091,6 +3091,8 @@ static int ldap_ExtendedResponse_parse(const char *buf, long rem)
|
||||
goto end;
|
||||
}
|
||||
|
||||
rem = len; /* ensure that we don't overstep the SEQUENCE */
|
||||
|
||||
/* pull MessageID */
|
||||
inf = ASN1_get_object(&cur, &len, &tag, &xclass, rem);
|
||||
if (inf != V_ASN1_UNIVERSAL || tag != V_ASN1_INTEGER ||
|
||||
|
Loading…
Reference in New Issue
Block a user