From ec1587eb6dd4cf4f49f80b66f9df1a371e1a6a87 Mon Sep 17 00:00:00 2001 From: octo Date: Wed, 19 Apr 2006 12:40:06 +0000 Subject: [PATCH] Set object options to the default values, when creating the object. This may have failed the `ping' plugins initialization.. --- src/liboping/liboping.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/liboping/liboping.c b/src/liboping/liboping.c index 57de9b5f..de66cd53 100644 --- a/src/liboping/liboping.c +++ b/src/liboping/liboping.c @@ -771,6 +771,10 @@ pingobj_t *ping_construct (void) return (NULL); memset (obj, '\0', sizeof (pingobj_t)); + obj->timeout = PING_DEF_TIMEOUT; + obj->ttl = PING_DEF_TTL; + obj->addrfamily = PING_DEF_AF; + return (obj); } -- 2.11.0