Revert rev 1.276, which broke back-shell "RESULT\ncode: <value>\n" (ITS#4495)

This commit is contained in:
Hallvard Furuseth 2006-04-19 22:03:13 +00:00
parent b1aaaed434
commit 5181a522c1

View file

@ -36,7 +36,6 @@
#include <ac/unistd.h>
#include "slap.h"
#include "lutil.h"
const struct berval slap_dummy_bv = BER_BVNULL;
@ -1467,8 +1466,8 @@ str2result(
}
if ( strncasecmp( s, "code", STRLENOF( "code" ) ) == 0 ) {
if ( c != NULL && lutil_atoi( code, c ) != 0 ) {
goto bailout;
if ( c != NULL ) {
*code = atoi( c );
}
} else if ( strncasecmp( s, "matched", STRLENOF( "matched" ) ) == 0 ) {
if ( c != NULL ) {
@ -1479,7 +1478,6 @@ str2result(
*info = c;
}
} else {
bailout:;
Debug( LDAP_DEBUG_ANY, "str2result (%s) unknown\n",
s, 0, 0 );