Skip to content
Snippets Groups Projects
Commit d9314adb authored by David Garcia Quintas's avatar David Garcia Quintas
Browse files

poopulate ->len with size of struct

parent e2869fee
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ int parse_unix(grpc_uri *uri, grpc_resolved_address *resolved_addr) {
if (path_len == maxlen) return 0;
un->sun_family = AF_UNIX;
strcpy(un->sun_path, uri->path);
resolved_addr->len = path_len + sizeof(un->sun_family) + 1;
resolved_addr->len = sizeof(*un);
return 1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment