From: Hallvard Furuseth Date: Wed, 19 Apr 2006 22:03:13 +0000 (+0000) Subject: Revert rev 1.276, which broke back-shell "RESULT\ncode: \n" (ITS#4495) X-Git-Tag: OPENLDAP_REL_ENG_2_4_1ALPHA~2^2~165 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5181a522c171490eaa3266b52c82079ddcfba21c;p=openldap Revert rev 1.276, which broke back-shell "RESULT\ncode: \n" (ITS#4495) --- diff --git a/servers/slapd/result.c b/servers/slapd/result.c index e412c6169e..f91be836ae 100644 --- a/servers/slapd/result.c +++ b/servers/slapd/result.c @@ -36,7 +36,6 @@ #include #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 );