]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib/ldb-samba: Fix building with FORTIFY_SOURCE=2
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 28 Sep 2023 03:32:29 +0000 (16:32 +1300)
committerJoseph Sutton <jsutton@samba.org>
Sun, 1 Oct 2023 22:45:38 +0000 (22:45 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb-samba/ldb_ildap.c

index c3d872ebaa1de153bf5857c2db2a6ace33da8dbf..37ef185fbbfd1dd82f39070b831c21ce1d39d23e 100644 (file)
@@ -291,6 +291,7 @@ static void ildb_callback(struct ldap_request *req)
 
        case LDAP_TAG_SearchRequest:
                /* loop over all messages */
+               ret = LDB_SUCCESS;
                for (i = 0; i < req->num_replies; i++) {
 
                        msg = req->replies[i];