git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4ffffc
)
Fix bug 6014 -- mget shouldn't segfault without arguments
author
Volker Lendecke
<vl@samba.org>
Mon, 5 Jan 2009 14:47:19 +0000
(15:47 +0100)
committer
Volker Lendecke
<vl@samba.org>
Mon, 5 Jan 2009 14:50:27 +0000
(15:50 +0100)
Thanks to kevin.paulus@mtm.kuleuven.be for the bug report
Volker
source/client/client.c
patch
|
blob
|
history
diff --git
a/source/client/client.c
b/source/client/client.c
index 1954bef43e8f4c1579e79486acac20982442806c..202a0078af6481e3f2c6e834c5a943b6904402b8 100644
(file)
--- a/
source/client/client.c
+++ b/
source/client/client.c
@@
-1326,6
+1326,11
@@
static int cmd_mget(void)
do_list(mget_mask, attribute, do_mget, false, true);
}
+ if (mget_mask == NULL) {
+ d_printf("nothing to mget\n");
+ return 0;
+ }
+
if (!*mget_mask) {
mget_mask = talloc_asprintf(ctx,
"%s*",