summaryrefslogtreecommitdiff
path: root/source3/smbd/uid.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-11-01 22:17:19 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-11-01 22:17:19 +0000
commit56dc17378b978f02f8397071021be5bf9a88b6a4 (patch)
tree5c18cf03ff5c2bc67b2cfcc1f9b04bba22f30c96 /source3/smbd/uid.c
parent9ec7e009ca41f64ef386e8effbac2801366cca8b (diff)
downloadsamba-56dc17378b978f02f8397071021be5bf9a88b6a4.tar.gz
samba-56dc17378b978f02f8397071021be5bf9a88b6a4.tar.bz2
samba-56dc17378b978f02f8397071021be5bf9a88b6a4.zip
Merges from HEAD:
- off-by-one fix - fixes warnings about insufficent space in buffer. - fix a memleak in uid.c - we forgot to free() the allocated struct. (This used to be commit b8951a6551b352e4aac7e8b0ecf7fec3f2d9634e)
Diffstat (limited to 'source3/smbd/uid.c')
-rw-r--r--source3/smbd/uid.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c
index 9a38d6e9e2..48b9768358 100644
--- a/source3/smbd/uid.c
+++ b/source3/smbd/uid.c
@@ -49,6 +49,8 @@ BOOL change_to_guest(void)
current_user.conn = NULL;
current_user.vuid = UID_FIELD_INVALID;
+ passwd_free(&pass);
+
return True;
}