From 85135221f08d2e2d54269c8b8fc4325833c2fe9d Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 19 Jun 2008 21:20:27 +0000 Subject: Handle commented lines. --- cmd-command-prompt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cmd-command-prompt.c') diff --git a/cmd-command-prompt.c b/cmd-command-prompt.c index 96ca7199..2a93d730 100644 --- a/cmd-command-prompt.c +++ b/cmd-command-prompt.c @@ -1,4 +1,4 @@ -/* $Id: cmd-command-prompt.c,v 1.1 2008-06-19 20:45:20 nicm Exp $ */ +/* $Id: cmd-command-prompt.c,v 1.2 2008-06-19 21:20:25 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -73,6 +73,8 @@ cmd_command_prompt_callback(void *data, char *s) return; if ((cmd = cmd_string_parse(s, &cause)) == NULL) { + if (cause == NULL) + return; *cause = toupper((u_char) *cause); server_set_client_message(c, cause); xfree(cause); -- cgit