mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
More ITS#6215: Fix va_arg integer types for ber_scanf "bei" & ber_printf "BX"
This commit is contained in:
parent
8b3bb91e93
commit
19b8065922
@ -745,7 +745,7 @@ ber_scanf ( BerElement *ber,
|
||||
break;
|
||||
|
||||
case 'e': /* enumerated */
|
||||
case 'i': /* int */
|
||||
case 'i': /* integer */
|
||||
i = va_arg( ap, ber_int_t * );
|
||||
rc = ber_get_int( ber, i );
|
||||
break;
|
||||
@ -899,8 +899,8 @@ ber_scanf ( BerElement *ber,
|
||||
|
||||
case 'b': /* boolean */
|
||||
case 'e': /* enumerated */
|
||||
case 'i': /* int */
|
||||
(void) va_arg( ap, int * );
|
||||
case 'i': /* integer */
|
||||
(void) va_arg( ap, ber_int_t * );
|
||||
break;
|
||||
|
||||
case 'l': /* length of next item */
|
||||
|
@ -578,7 +578,7 @@ ber_printf( BerElement *ber, LDAP_CONST char *fmt, ... )
|
||||
case 'B': /* bit string */
|
||||
case 'X': /* bit string (deprecated) */
|
||||
s = va_arg( ap, char * );
|
||||
len = va_arg( ap, int ); /* in bits */
|
||||
len = va_arg( ap, ber_len_t ); /* in bits */
|
||||
rc = ber_put_bitstring( ber, s, len, ber->ber_tag );
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user