summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/pipenetlog.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/pipenetlog.c b/source3/pipenetlog.c
index 0191d2fa5e..b4f0db766b 100644
--- a/source3/pipenetlog.c
+++ b/source3/pipenetlog.c
@@ -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)
{