[Pal/{Linux, Linux-SGX}] Initialize addrlen's to zeros in socket_parse_uri()

This commit is contained in:
Dmitrii Kuvaiskii
2019-05-03 12:50:03 -07:00
parent 0a8f97af5a
commit 121fc9bf1d
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -201,8 +201,12 @@ static int socket_parse_uri (char * uri,
if (!uri || !(*uri)) {
if (bind_addr)
*bind_addr = NULL;
if (bind_addrlen)
*bind_addrlen = 0;
if (dest_addr)
*dest_addr = NULL;
if (dest_addrlen)
*dest_addrlen = 0;
return 0;
}
+4
View File
@@ -208,8 +208,12 @@ static int socket_parse_uri (char * uri,
if (!uri || !(*uri)) {
if (bind_addr)
*bind_addr = NULL;
if (bind_addrlen)
*bind_addrlen = 0;
if (dest_addr)
*dest_addr = NULL;
if (dest_addrlen)
*dest_addrlen = 0;
return 0;
}