mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 16:49:39 -05:00
Revert rev 1.276, which broke back-shell "RESULT\ncode: <value>\n" (ITS#4495)
This commit is contained in:
parent
b1aaaed434
commit
5181a522c1
1 changed files with 2 additions and 4 deletions
|
|
@ -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 );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue