aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2013-02-22 10:53:29 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2013-04-17 14:34:36 +0200
commit70c58ef03bd99f42cc0e3493501435b04455a5e5 (patch)
treef7130c0bc62097c5f8605afadcc8a9dffd923d93
parentd38cf50d0a7bdaa1bc8944630129b3fe92a0f799 (diff)
ctrl: Provide a reply in case the range check failed
-rw-r--r--openbsc/include/openbsc/control_cmd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/control_cmd.h b/openbsc/include/openbsc/control_cmd.h
index d6292be42..a0ea055ce 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 = { \