]> git.ipfire.org Git - thirdparty/xtables-addons.git/commit
pknlusr: do not treat recv return value of zero as an error
authorJeremy Sowden <jeremy@azazel.net>
Sun, 25 Oct 2020 13:15:53 +0000 (14:15 +0100)
committerJan Engelhardt <jengelh@inai.de>
Sun, 25 Oct 2020 14:01:50 +0000 (15:01 +0100)
commit3c120ef5f199ed2c3cc315cf5f704b8ec886d31f
tree633280be33387376f0ecb8103de726e920726f90
parentb0a1aacd4b726d59a3e70e3b78223106667163a5
pknlusr: do not treat recv return value of zero as an error

A return-value of zero is not an error, so there is no point calling
perror, but since we have not requested and do not expect a zero-length
datagram, we treat it as EOF and exit.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
extensions/pknock/pknlusr.c