]> git.ipfire.org Git - thirdparty/iptables.git/commit
xtoptions: respect return value in xtables_getportbyname
authorJan Engelhardt <jengelh@medozas.de>
Thu, 14 Apr 2011 11:54:24 +0000 (13:54 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Thu, 14 Apr 2011 11:54:54 +0000 (13:54 +0200)
commit44517bda3d8130638882f69478a8091316f30cbb
tree02d272bd02f4895f1e6c013f6522776ea433afa2
parentd44c31ac8e52f34e058f44aba14f679abcc7edf9
xtoptions: respect return value in xtables_getportbyname

If ret was negative, ntohs may make it positive, which is undesired.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
xtoptions.c