diff options
author | laforge <laforge> | 2001-07-23 02:14:22 +0000 |
---|---|---|
committer | laforge <laforge> | 2001-07-23 02:14:22 +0000 |
commit | 1eef903c702ef52efcbf5e8b04117b3cec591922 (patch) | |
tree | 6b34d5dfc6bca2aff38c5e6f406c0f1700fe8836 /extensions/libipt_tos.c | |
parent | 24824b73d48ba0590401934597f67b0e982b900d (diff) |
further fixes of string_to_number fixes
Diffstat (limited to 'extensions/libipt_tos.c')
-rw-r--r-- | extensions/libipt_tos.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/libipt_tos.c b/extensions/libipt_tos.c index ec83e18..f1d3b2a 100644 --- a/extensions/libipt_tos.c +++ b/extensions/libipt_tos.c @@ -57,9 +57,9 @@ static void parse_tos(const unsigned char *s, struct ipt_tos_info *info) { unsigned int i; - int tos = string_to_number(s, 0, 255); + unsigned int tos; - if (tos != -1) { + if (string_to_number(s, 0, 255, &tos) != -1) { if (tos == IPTOS_LOWDELAY || tos == IPTOS_THROUGHPUT || tos == IPTOS_RELIABILITY |