diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2018-10-01 21:23:31 +0200 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2018-10-23 15:39:33 +0200 |
commit | 545d0b77d3308fde3de50c446b02ef1571b5cfa6 (patch) | |
tree | 06faea11b018397a04f2005c21e476cef2259866 /tests | |
parent | 04091a9e1684970cca87a046f394addfb0c6664b (diff) | |
download | socket_wrapper-545d0b77d3308fde3de50c446b02ef1571b5cfa6.tar.gz socket_wrapper-545d0b77d3308fde3de50c446b02ef1571b5cfa6.tar.xz socket_wrapper-545d0b77d3308fde3de50c446b02ef1571b5cfa6.zip |
echo_srv: Check for a valid pidfile pointer
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/echo_srv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/echo_srv.c b/tests/echo_srv.c index 555c3b4..9a81c42 100644 --- a/tests/echo_srv.c +++ b/tests/echo_srv.c @@ -916,7 +916,7 @@ int main(int argc, char **argv) echo(sock, &opts); close(sock); - if (opts.daemon) { + if (opts.daemon && opts.pidfile != NULL) { unlink(opts.pidfile); } |