X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Flibldap%2Fresult.c;h=16189ef36e2246ed9218a774f48043cc63054438;hb=b4243bc119b2f88318103176c7c671662c9ff371;hp=918bba0029c8aa397ccdb6203c9b249b10659217;hpb=0c363721341f448d2427fe0580bc7d041e963431;p=openldap 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 */