]> git.sur5r.net Git - openldap/commitdiff
extract at least result code
authorPierangelo Masarati <ando@openldap.org>
Sun, 29 Aug 2010 01:25:36 +0000 (01:25 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sun, 29 Aug 2010 01:25:36 +0000 (01:25 +0000)
tests/progs/slapd-search.c

index 2bb98f6bd2d5c8f1dbf0264e288247b016fa71d6..6a86c8a53ba27275bb8f6a6d02f67148feaaba36 100644 (file)
@@ -516,6 +516,8 @@ retry:;
                        case LDAP_RES_SEARCH_RESULT:
                                /* just remove, no error checking (TODO?) */
                                msgid = ldap_msgid( res );
+                               ldap_parse_result( ld, res, &rc, NULL, NULL, NULL, NULL, 1 );
+                               res = NULL;
 
                                /* linear search, bah */
                                for ( j = 0; j < i; j++ ) {