summaryrefslogtreecommitdiff
path: root/source3/client/client.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-05-29 15:44:35 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-05-29 15:44:35 +0000
commit44fa85fd60baf1dba4e4858ee23b9ebbd7e13ef9 (patch)
tree431eb856f83e6413e9d186d6417056cea7aa41f8 /source3/client/client.c
parentc8d1a6b676b8ed1c36c88fd5786942a4dd793f1a (diff)
downloadsamba-44fa85fd60baf1dba4e4858ee23b9ebbd7e13ef9.tar.gz
samba-44fa85fd60baf1dba4e4858ee23b9ebbd7e13ef9.tar.bz2
samba-44fa85fd60baf1dba4e4858ee23b9ebbd7e13ef9.zip
Don't crash when doing namecompletion in smbclient. Fixes debian bug #194776
(This used to be commit f130b4f2a143ef7507d7267ec12a11c1d91f0457)
Diffstat (limited to 'source3/client/client.c')
-rw-r--r--source3/client/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 690cc99f7f..69037ca1db 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -2328,7 +2328,7 @@ static char **completion_fn(const char *text, int start, int end)
if (sp == NULL)
return NULL;
- for (i = 0; commands[i].name; i++)
+ for (i = 0; commands[i].description; i++)
if ((strncmp(commands[i].name, text, sp - buf) == 0) && (commands[i].name[sp - buf] == 0))
break;
if (commands[i].name == NULL)