diff options
author | 2012-07-09 12:45:30 +0000 | |
---|---|---|
committer | 2012-07-09 12:45:30 +0000 | |
commit | 0cdbad8ad828a84903768c694d3876fa57581c53 (patch) | |
tree | a3aab5394daee885cad0812c51176791648a61f3 /sys | |
parent | move to the new resolver implementation, with temporary glue to use (diff) | |
download | wireguard-openbsd-0cdbad8ad828a84903768c694d3876fa57581c53.tar.xz wireguard-openbsd-0cdbad8ad828a84903768c694d3876fa57581c53.zip |
Use strtonum() instead of strtol() inside ask_num(). Many overflows
are thus avoided. Since bounds are now reliable don't check the
returned value for being in-bounds. Since default value is
forced inside bounds, don't bother being tricky and passing a
default that is outside the bounds being specified.
ok beck@
Diffstat (limited to 'sys')
0 files changed, 0 insertions, 0 deletions