]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/result.c
fix non-printable flag detection; improve dn test (passes all but last in http:/...
[openldap] / libraries / libldap / result.c
index 0deca52040fdec040956dd5d29a86494d49e7967..918bba0029c8aa397ccdb6203c9b249b10659217 100644 (file)
@@ -427,10 +427,9 @@ try_read1msg(
        }
 #ifdef LDAP_CONNECTIONLESS
        if (LDAP_IS_UDP(ld) && ld->ld_options.ldo_version == LDAP_VERSION2) {
-               char *blank;
+               char *blank = NULL;
                ber_scanf(ber, "a{", &blank);
-               if (blank)
-                       ber_memfree(blank);
+               if (blank) ber_memfree(blank);
        }
 #endif
        /* the message type */