[SCM] Samba Shared Repository - branch v3-3-test updated -
release-3-2-0pre2-2928-g4c3bfea
coffeedude at samba.org
coffeedude at samba.org
Thu Jun 19 18:44:57 GMT 2008
The branch, v3-3-test has been updated
via 4c3bfea9f8d238f9100eaa264b9b2941dff5a6dd (commit)
from 5f8a5e68ea166fbeda3af6e5ec381ec09d06f0f6 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test
- Log -----------------------------------------------------------------
commit 4c3bfea9f8d238f9100eaa264b9b2941dff5a6dd
Author: root <root at dolby.ad.plainjoe.org>
Date: Thu Jun 19 12:14:32 2008 -0500
net: Fix crash when specifying invalid options on the command line
-----------------------------------------------------------------------
Summary of changes:
source/utils/net_util.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/utils/net_util.c b/source/utils/net_util.c
index 6029231..8938b9c 100644
--- a/source/utils/net_util.c
+++ b/source/utils/net_util.c
@@ -550,6 +550,14 @@ int net_run_function(struct net_context *c, int argc, const char **argv,
const char *whoami, struct functable *table)
{
int i;
+
+ if (!table) {
+ d_fprintf(stderr, "Invalid command. Run \"%s\" for more details.\n",
+ whoami);
+ return 1;
+ }
+
+
if (argc != 0) {
for (i=0; table[i].funcname != NULL; i++) {
if (StrCaseCmp(argv[0], table[i].funcname) == 0)
--
Samba Shared Repository
More information about the samba-cvs
mailing list