Patches for [PATCH] Fix segfauly in check_nwstat.c [sf#1055054] [#340]