diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-02-22 10:53:29 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2014-08-21 15:34:15 +0200 |
commit | e9f7be16acb78b28ab18fcb61f228569cbea652d (patch) | |
tree | 78946d617cdfcea38c3c5d43cc2089849b5b1e5a /openbsc/include | |
parent | da5eded5ad3f530ec7e03de8e1c065711299d7d4 (diff) |
ctrl: Provide a reply in case the range check failed
Diffstat (limited to 'openbsc/include')
-rw-r--r-- | openbsc/include/openbsc/control_cmd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/control_cmd.h b/openbsc/include/openbsc/control_cmd.h index d6292be4..a0ea055c 100644 --- a/openbsc/include/openbsc/control_cmd.h +++ b/openbsc/include/openbsc/control_cmd.h @@ -110,6 +110,7 @@ static int verify_##cmdname(struct ctrl_cmd *cmd, const char *value, void *_data if ((tmp >= min)&&(tmp <= max)) { \ return 0; \ } \ + cmd->reply = "Input not within the range"; \ return -1; \ } \ static struct ctrl_cmd_element cmd_##cmdname = { \ |