]> granicus.if.org Git - sudo/commitdiff
Correct ldap_to_sudoers() return value.
authorTodd C. Miller <Todd.Miller@sudo.ws>
Thu, 30 Aug 2018 19:47:02 +0000 (13:47 -0600)
committerTodd C. Miller <Todd.Miller@sudo.ws>
Thu, 30 Aug 2018 19:47:02 +0000 (13:47 -0600)
plugins/sudoers/ldap.c

index bcf13442163b4edd27f19f59c1ff92eb5fe4fe16..5942e5c8483d661d76faf2a3d4e69eb1c0592626 100644 (file)
@@ -1222,12 +1222,12 @@ ldap_to_sudoers(LDAP *ld, struct ldap_result *lres,
        TAILQ_INSERT_TAIL(&us->privileges, priv, entries);
     }
 
-    debug_return_ptr(ldap_userspecs);
+    debug_return_bool(true);
 
 oom:
     sudo_warnx(U_("%s: %s"), __func__, U_("unable to allocate memory"));
     free_userspecs(ldap_userspecs);
-    debug_return_ptr(NULL);
+    debug_return_bool(false);
 }
 
 #ifdef HAVE_LDAP_SASL_INTERACTIVE_BIND_S