From 459357fa4339716810009fea41209ea47460ae2f Mon Sep 17 00:00:00 2001 From: Marc Boucher Date: Sat, 8 Sep 2001 02:16:51 +0000 Subject: Yet another set of string_to_number() fixes. --- extensions/libipt_FTOS.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'extensions/libipt_FTOS.c') diff --git a/extensions/libipt_FTOS.c b/extensions/libipt_FTOS.c index b9a5d696..2e3771b8 100644 --- a/extensions/libipt_FTOS.c +++ b/extensions/libipt_FTOS.c @@ -45,7 +45,9 @@ parse_ftos(const unsigned char *s, struct ipt_FTOS_info *finfo) { unsigned int ftos; - string_to_number(s, 0, 255, &ftos); + if (string_to_number(s, 0, 255, &ftos) == -1) + exit_error(PARAMETER_PROBLEM, + "Invalid ftos `%s'\n", s); finfo->ftos = (u_int8_t )ftos; return; } -- cgit v1.2.3