summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1997-10-13 17:11:07 +0000
committerLuke Leighton <lkcl@samba.org>1997-10-13 17:11:07 +0000
commitc87abfc5651fa906f5b64a5814ab6f5d5c0b25a5 (patch)
treed2b0560f28a0feb251ea9142ddc9c39a87e3f31c /source3
parent106410a376fa520a62e065e7a0becb5796aaf80e (diff)
downloadsamba-c87abfc5651fa906f5b64a5814ab6f5d5c0b25a5.tar.gz
samba-c87abfc5651fa906f5b64a5814ab6f5d5c0b25a5.tar.bz2
samba-c87abfc5651fa906f5b64a5814ab6f5d5c0b25a5.zip
put a check around become_user(). doesn't authenticate the user, but doesn't
quit the whole pipe, either... (This used to be commit 14f0c2ddb05a690e671efad8c47da9ff1e39c8ce)
Diffstat (limited to 'source3')
-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)
{