]> git.sur5r.net Git - openldap/commitdiff
Use ber_scanf 'm' format for ignored UDP string
authorHoward Chu <hyc@openldap.org>
Thu, 17 Jan 2002 23:30:05 +0000 (23:30 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 17 Jan 2002 23:30:05 +0000 (23:30 +0000)
libraries/libldap/result.c

index 918bba0029c8aa397ccdb6203c9b249b10659217..16189ef36e2246ed9218a774f48043cc63054438 100644 (file)
@@ -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 */