]> git.sur5r.net Git - openldap/commitdiff
Revert rev 1.276, which broke back-shell "RESULT\ncode: <value>\n" (ITS#4495)
authorHallvard Furuseth <hallvard@openldap.org>
Wed, 19 Apr 2006 22:03:13 +0000 (22:03 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Wed, 19 Apr 2006 22:03:13 +0000 (22:03 +0000)
servers/slapd/result.c

index e412c6169eecf7a9f70113ac3bb33232c846c056..f91be836ae33b5fa181752e6a0b9f618bfd86220 100644 (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 );