diff --git a/libraries/libldap/request.c b/libraries/libldap/request.c index 91ac6d0761..82be383618 100644 --- a/libraries/libldap/request.c +++ b/libraries/libldap/request.c @@ -236,7 +236,7 @@ ldap_new_connection( LDAP *ld, LDAPURLDesc *srvlist, int use_ldsb, { LDAPConn *lc; LDAPURLDesc *srv; - Sockbuf *sb; + Sockbuf *sb = NULL; Debug( LDAP_DEBUG_TRACE, "ldap_new_connection\n", 0, 0, 0 ); /*