stats: Do not assign the wrong addresss

we need to put the default value into inaddr and not put a
32bit value into the addr pointer.

Spotted by cppcheck:
[src/stats.c:231]: (error) Uninitialized variable: inaddr
diff --git a/src/stats.c b/src/stats.c
index 39247b6..f979bdc 100644
--- a/src/stats.c
+++ b/src/stats.c
@@ -225,7 +225,7 @@
 		if (rc <= 0)
 			return -EINVAL;
 	} else {
-		addr = INADDR_ANY;
+		inaddr.s_addr = INADDR_ANY;
 	}
 
 	sock_addr->sin_addr = inaddr;