Module: sip-router
Branch: kamailio_3.0
Commit: f0d89fb89d1b588f253f048ab8fc22e0db7fff66
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f0d89fb…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sun Jan 10 19:02:42 2010 +0100
core: init the len of sock_str attribute
---
socket_info.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/socket_info.c b/socket_info.c
index 3fa648b..6627d70 100644
--- a/socket_info.c
+++ b/socket_info.c
@@ -363,6 +363,7 @@ static int fix_sock_str(struct socket_info* si)
return -1;
}
si->sock_str.s[len] = '\0';
+ si->sock_str.len = len;
return 0;
}