put a check around become_user(). doesn't authenticate the user, but doesn't
authorLuke Leighton <lkcl@samba.org>
Mon, 13 Oct 1997 17:11:07 +0000 (17:11 +0000)
committerLuke Leighton <lkcl@samba.org>
Mon, 13 Oct 1997 17:11:07 +0000 (17:11 +0000)
quit the whole pipe, either...
(This used to be commit 14f0c2ddb05a690e671efad8c47da9ff1e39c8ce)

source3/pipenetlog.c

index 0191d2fa5e584c43690cb85a15a5a4271bad48a4..b4f0db766bfb4ac97236ae36da88753c4d378bdb 100644 (file)
@@ -271,7 +271,11 @@ static BOOL update_dcinfo(int cnum, uint16 vuid,
 
        unbecome_user();
        smb_pass = get_smbpwnam(mach_acct);
-       become_user(cnum, vuid);
+       if (!become_user(cnum, vuid))
+       {
+               DEBUG(0,("update_dcinfo: become_user failed\n"));
+               return False;
+       }
 
        if (smb_pass != NULL)
        {