summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-03-20 23:07:36 +0000
committerJeremy Allison <jra@samba.org>2001-03-20 23:07:36 +0000
commitbeec1ea8291c9c2b12745d37ffe307dd4e3bd6ec (patch)
tree5cefe9d779e5f11b398c8029796053ddfc61aceb /source3/nsswitch
parent344fb49fbf4df55492bfa9cc1aee2d8210c32ca6 (diff)
downloadsamba-beec1ea8291c9c2b12745d37ffe307dd4e3bd6ec.tar.gz
samba-beec1ea8291c9c2b12745d37ffe307dd4e3bd6ec.tar.bz2
samba-beec1ea8291c9c2b12745d37ffe307dd4e3bd6ec.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. (This used to be commit 80c18d88491f1148ade623e81c33f84ba4f952f3)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/wb_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nsswitch/wb_client.c b/source3/nsswitch/wb_client.c
index 77c48352a3..746e5406bc 100644
--- a/source3/nsswitch/wb_client.c
+++ b/source3/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;