git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
301be8c
)
Remove a pointless variable
author
Volker Lendecke
<vl@samba.org>
Fri, 31 Jul 2009 20:38:54 +0000
(22:38 +0200)
committer
Volker Lendecke
<vl@samba.org>
Fri, 31 Jul 2009 20:39:13 +0000
(22:39 +0200)
source3/winbindd/winbindd_user.c
patch
|
blob
|
history
diff --git
a/source3/winbindd/winbindd_user.c
b/source3/winbindd/winbindd_user.c
index da6a303e5d26a2ae406c91cdcd9a69af1beff607..5ab2f2b4a69fc91a50c9bbd99214afd1bf6cec96 100644
(file)
--- a/
source3/winbindd/winbindd_user.c
+++ b/
source3/winbindd/winbindd_user.c
@@
-426,14
+426,12
@@
void winbindd_getpwnam(struct winbindd_cli_state *state)
fstring domname, username;
char *mapped_user = NULL;
char *domuser;
- size_t dusize;
NTSTATUS nt_status = NT_STATUS_UNSUCCESSFUL;
domuser = state->request->data.username;
- dusize = sizeof(state->request->data.username);
/* Ensure null termination (it's an fstring) */
- domuser[
dusize
-1] = '\0';
+ domuser[
sizeof(state->request->data.username)
-1] = '\0';
DEBUG(3, ("[%5lu]: getpwnam %s\n",
(unsigned long)state->pid,