]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10559 back-sock: treat partial response as failure master
authorHoward Chu <hyc@openldap.org>
Thu, 6 Aug 2026 14:22:58 +0000 (15:22 +0100)
committerHoward Chu <hyc@openldap.org>
Thu, 6 Aug 2026 14:22:58 +0000 (15:22 +0100)
servers/slapd/back-sock/result.c
servers/slapd/result.c

index 7640eefee1480d0101ed66d135fb46d05ac06fdd..0baeb2f10989dbcebc18acc271fec72cea16661e 100644 (file)
@@ -31,8 +31,7 @@
 #include "back-sock.h"
 
 /*
 #include "back-sock.h"
 
 /*
- * FIXME: make a RESULT section compulsory from the socket response.
- * Otherwise, a partial/aborted response is treated as 'success'.
+ * Note: str2result treats a partial/aborted response as failure, LDAP_OTHER.
  * This is a divergence from the back-shell protocol, but makes things
  * more robust.
  */
  * This is a divergence from the back-shell protocol, but makes things
  * more robust.
  */
index ad7abdf5356b918e90ad640b90b6c6d88b92205a..46304fa2dfe220b41c25c24b42d65e39bb1b5d54 100644 (file)
@@ -1722,7 +1722,7 @@ str2result(
        int     rc;
        char    *c;
 
        int     rc;
        char    *c;
 
-       *code = LDAP_SUCCESS;
+       *code = LDAP_OTHER;
        *matched = NULL;
        *info = NULL;
 
        *matched = NULL;
        *info = NULL;