From 880c222d52341e1490fb1afd396b57285a8628d5 Mon Sep 17 00:00:00 2001 From: marc 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 b9a5d69..2e3771b 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