diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-11-01 22:17:19 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-11-01 22:17:19 +0000 |
commit | 56dc17378b978f02f8397071021be5bf9a88b6a4 (patch) | |
tree | 5c18cf03ff5c2bc67b2cfcc1f9b04bba22f30c96 /source3/smbd/uid.c | |
parent | 9ec7e009ca41f64ef386e8effbac2801366cca8b (diff) | |
download | samba-56dc17378b978f02f8397071021be5bf9a88b6a4.tar.gz samba-56dc17378b978f02f8397071021be5bf9a88b6a4.tar.xz 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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c index 9a38d6e9e27..48b9768358e 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; } |