From 25cd89b44350983efe208d1fd7c67a11e4aefa71 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 17 Jan 2002 23:30:05 +0000 Subject: [PATCH] Use ber_scanf 'm' format for ignored UDP string --- libraries/libldap/result.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 */ -- 2.39.5