Browse code

core: init the len of sock_str attribute (cherry picked from commit f0d89fb89d1b588f253f048ab8fc22e0db7fff66)

Daniel-Constantin Mierla authored on 10/01/2010 18:02:42 • Andrei Pelinescu-Onciul committed on 15/01/2010 13:33:07
Showing 1 changed files
... ...
@@ -363,6 +363,7 @@ static int fix_sock_str(struct socket_info* si)
363 363
 		return -1;
364 364
 	}
365 365
 	si->sock_str.s[len] = '\0';
366
+	si->sock_str.len = len;
366 367
 	return 0;
367 368
 }
368 369