]> granicus.if.org Git - sudo/commitdiff
Avoid possible NULL deref found by clang analyzer.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 27 Jan 2016 23:07:35 +0000 (16:07 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 27 Jan 2016 23:07:35 +0000 (16:07 -0700)
plugins/sudoers/sssd.c

index 2bbfd4934bdbbab56321fb9b292f49a55983058f..316ee38a58ef0f534b2e0bae876423c2bea226cd 100644 (file)
@@ -1238,8 +1238,7 @@ sudo_sss_display_cmnd(struct sudo_nss *nss, struct passwd *pw)
     debug_decl(sudo_sss_display_cmnd, SUDOERS_DEBUG_SSSD);
 
     if (handle == NULL)
-       goto done;
-
+       debug_return_int(-1);
     if (sudo_sss_checkpw(nss, pw) != 0)
        debug_return_int(-1);