git.samba.org
/
rusty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44198ca
)
Further fix for 6449
author
Volker Lendecke
<vl@samba.org>
Mon, 8 Jun 2009 08:05:11 +0000
(10:05 +0200)
committer
Karolin Seeger
<kseeger@samba.org>
Wed, 10 Jun 2009 14:17:59 +0000
(16:17 +0200)
Thanks to TAKAHASHI Motonobu <monyo@samba.gr.jp> for reporting!
(cherry picked from commit
aa03326fe523e9bc85e6db276f94e9d04aaf009d
)
source/utils/net_rap.c
patch
|
blob
|
history
diff --git
a/source/utils/net_rap.c
b/source/utils/net_rap.c
index 573f18db60ec93f7e63be0032098c6e0bacd2a4a..c04b0793cc1a0ca3b451ab6ad098060fc57109be 100644
(file)
--- a/
source/utils/net_rap.c
+++ b/
source/utils/net_rap.c
@@
-962,7
+962,7
@@
static int rap_group_add(struct net_context *c, int argc, const char **argv)
/* BB check for length 21 or smaller explicitly ? BB */
safe_strcpy(grinfo.group_name, argv[0], sizeof(grinfo.group_name)-1);
grinfo.reserved1 = '\0';
- grinfo.comment = smb_xstrdup(c->opt_comment);
+ grinfo.comment = smb_xstrdup(c->opt_comment
? c->opt_comment : ""
);
ret = cli_NetGroupAdd(cli, &grinfo);
cli_shutdown(cli);