summaryrefslogtreecommitdiffstats
path: root/source
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
commit14f0c2ddb05a690e671efad8c47da9ff1e39c8ce (patch)
treecb0ec712854a7159fb3b9ac08929bf04ca83f7ea /source
parent9d1f45ca6bbdeeef448ccb55e1275c6f9ec59820 (diff)
downloadsamba-14f0c2ddb05a690e671efad8c47da9ff1e39c8ce.tar.gz
samba-14f0c2ddb05a690e671efad8c47da9ff1e39c8ce.tar.xz
samba-14f0c2ddb05a690e671efad8c47da9ff1e39c8ce.zip
put a check around become_user(). doesn't authenticate the user, but doesn't
quit the whole pipe, either...
Diffstat (limited to 'source')
-rw-r--r--source/pipenetlog.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/pipenetlog.c b/source/pipenetlog.c
index 0191d2fa5e5..b4f0db766bf 100644
--- a/source/pipenetlog.c
+++ b/source/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)
{