diff options
author | Jeremy Allison <jra@samba.org> | 2001-03-20 23:07:36 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-03-20 23:07:36 +0000 |
commit | 80c18d88491f1148ade623e81c33f84ba4f952f3 (patch) | |
tree | 8632cfda9d2ed8eabb856662ed0bd1966dba186a /source/nsswitch | |
parent | fd6bfe03f4454272bdce59c78ae7148a72caaf18 (diff) | |
download | samba-80c18d88491f1148ade623e81c33f84ba4f952f3.tar.gz samba-80c18d88491f1148ade623e81c33f84ba4f952f3.tar.xz samba-80c18d88491f1148ade623e81c33f84ba4f952f3.zip |
Fix for crash when doing name lookup with a quoted string. Part of
lookup_name was expecting to be able to write to the string. Changed
lookup_name to use const.
Jeremy.
Diffstat (limited to 'source/nsswitch')
-rw-r--r-- | source/nsswitch/wb_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/nsswitch/wb_client.c b/source/nsswitch/wb_client.c index 77c48352a3b..746e5406bc8 100644 --- a/source/nsswitch/wb_client.c +++ b/source/nsswitch/wb_client.c @@ -27,7 +27,7 @@ /* Call winbindd to convert a name to a sid */ -BOOL winbind_lookup_name(char *name, DOM_SID *sid, enum SID_NAME_USE *name_type) +BOOL winbind_lookup_name(const char *name, DOM_SID *sid, enum SID_NAME_USE *name_type) { struct winbindd_request request; struct winbindd_response response; |