From 5181a522c171490eaa3266b52c82079ddcfba21c Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Wed, 19 Apr 2006 22:03:13 +0000 Subject: [PATCH] Revert rev 1.276, which broke back-shell "RESULT\ncode: \n" (ITS#4495) --- servers/slapd/result.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 ); -- 2.39.5