From: Pierangelo Masarati Date: Sun, 29 Aug 2010 01:25:36 +0000 (+0000) Subject: extract at least result code X-Git-Tag: MIGRATION_CVS2GIT~511 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=15bcbdbc32a76b529aeb4e75d7d3645cc4d0a7e3;p=openldap extract at least result code --- diff --git a/tests/progs/slapd-search.c b/tests/progs/slapd-search.c index 2bb98f6bd2..6a86c8a53b 100644 --- a/tests/progs/slapd-search.c +++ b/tests/progs/slapd-search.c @@ -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++ ) {