From: Howard Chu Date: Thu, 17 Jan 2002 23:30:05 +0000 (+0000) Subject: Use ber_scanf 'm' format for ignored UDP string X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~85 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=25cd89b44350983efe208d1fd7c67a11e4aefa71;p=openldap Use ber_scanf 'm' format for ignored UDP string --- diff --git a/libraries/libldap/result.c b/libraries/libldap/result.c index 918bba0029..16189ef36e 100644 --- a/libraries/libldap/result.c +++ b/libraries/libldap/result.c @@ -427,9 +427,8 @@ try_read1msg( } #ifdef LDAP_CONNECTIONLESS if (LDAP_IS_UDP(ld) && ld->ld_options.ldo_version == LDAP_VERSION2) { - char *blank = NULL; - ber_scanf(ber, "a{", &blank); - if (blank) ber_memfree(blank); + struct berval blank; + ber_scanf(ber, "m{", &blank); } #endif /* the message type */