diff options
author | marc <marc> | 2001-09-08 02:16:51 +0000 |
---|---|---|
committer | marc <marc> | 2001-09-08 02:16:51 +0000 |
commit | 880c222d52341e1490fb1afd396b57285a8628d5 (patch) | |
tree | 78ef991f460ec9520dbaf5006223e512cf687142 /extensions/libipt_FTOS.c | |
parent | ec82514c759d43a03872e533d79271bc0cd2216c (diff) |
Yet another set of string_to_number() fixes.
Diffstat (limited to 'extensions/libipt_FTOS.c')
-rw-r--r-- | extensions/libipt_FTOS.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |