tftpd: simplify option parsing
commitf3035c45bc50bb5cac87ca01e7ef6a12485184f8
authorH. Peter Anvin <hpa@linux.intel.com>
Fri, 10 Jun 2011 18:47:02 +0000 (10 11:47 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Fri, 10 Jun 2011 18:49:00 +0000 (10 11:49 -0700)
tree7307fa894915bebc42bf923e9db185d4f2bd55b7
parent2864d83feaac090865acb9c147c17d9793ef53dc
tftpd: simplify option parsing

Simplify the option parsing to make use of the fact that all the
options we support are integer options.  This fixes a buffer overflow
in the utimeout option.

Reported-by: Timo Warns <warns@pre-sense.de>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
tftpd/tftpd.c