]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/result.c
fix NOOP return code (ITS#4563; I'll check and confirm it later; NOOP support might...
[openldap] / servers / slapd / result.c
index 11e2c962f303e2bfcfd22f91cba0f4c80d676eac..bb27c760f3638cbc3cd7872e5db45e9fea6d416d 100644 (file)
@@ -1476,7 +1476,7 @@ str2result(
                                continue;
                        }
 
-                       while ( isspace( c[ 0 ] ) ) c++;
+                       while ( isspace( (unsigned char) c[ 0 ] ) ) c++;
                        if ( c[ 0 ] == '\0' ) {
                                Debug( LDAP_DEBUG_ANY, "str2result (%s) missing or empty value\n",
                                    s, 0, 0 );
@@ -1492,7 +1492,7 @@ str2result(
                                continue;
                        }
 
-                       while ( isspace( next[ 0 ] ) ) next++;
+                       while ( isspace( (unsigned char) next[ 0 ] ) ) next++;
                        if ( next[ 0 ] != '\0' ) {
                                Debug( LDAP_DEBUG_ANY, "str2result (%s) extra cruft after value\n",
                                    s, 0, 0 );