diff options
author | dtucker@openbsd.org <dtucker@openbsd.org> | 2017-12-06 00:59:47 +0100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2017-12-07 01:49:00 +0100 |
commit | 609d96b3d58475a15b2eb6b3d463f2c5d8e510c0 (patch) | |
tree | be75a3c395010d0ccf6e5c07e46e4e826203a221 /misc.h | |
parent | upstream commit (diff) | |
download | openssh-609d96b3d58475a15b2eb6b3d463f2c5d8e510c0.tar.xz openssh-609d96b3d58475a15b2eb6b3d463f2c5d8e510c0.zip |
upstream commit
Replace atoi and strtol conversions for integer arguments
to config keywords with a checking wrapper around strtonum. This will
prevent and flag invalid and negative arguments to these keywords. ok djm@
OpenBSD-Commit-ID: 99ae3981f3d608a219ccb8d2fff635ae52c17998
Diffstat (limited to 'misc.h')
-rw-r--r-- | misc.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: misc.h,v 1.68 2017/11/25 06:46:22 dtucker Exp $ */ +/* $OpenBSD: misc.h,v 1.69 2017/12/05 23:59:47 dtucker Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> @@ -74,6 +74,7 @@ double monotime_double(void); void lowercase(char *s); int unix_listener(const char *, int, int); int valid_domain(char *, int, const char **); +const char *atoi_err(const char *, int *); void sock_set_v6only(int); |