aboutsummaryrefslogtreecommitdiffstats
path: root/package/wprobe
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-07-07 03:21:09 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-07-07 03:21:09 +0000
commit3f24ae593c884c1b98cdba3cd5ff57562dff7fd0 (patch)
treed48b4871392e71b1cf2612cc284cd437f3c1eeb4 /package/wprobe
parent18ab433219fe755bbd630d230bba3f53613b2d20 (diff)
downloadupstream-3f24ae593c884c1b98cdba3cd5ff57562dff7fd0.tar.gz
upstream-3f24ae593c884c1b98cdba3cd5ff57562dff7fd0.tar.bz2
upstream-3f24ae593c884c1b98cdba3cd5ff57562dff7fd0.zip
wprobe: fix uninitialized variable
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16731 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/wprobe')
-rw-r--r--package/wprobe/src/user/wprobe-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/wprobe/src/user/wprobe-util.c b/package/wprobe/src/user/wprobe-util.c
index d5d440a30c..72feece025 100644
--- a/package/wprobe/src/user/wprobe-util.c
+++ b/package/wprobe/src/user/wprobe-util.c
@@ -296,7 +296,7 @@ static int run_proxy(int port)
return 1;
}
while(1) {
- unsigned int addrlen;
+ unsigned int addrlen = sizeof(struct sockaddr_in);
int ret, c;
c = accept(s, (struct sockaddr *)&sa, &addrlen);