mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
The function __rpc_uaddr2taddr_af() converts an RPC "universal
address" string to a netbuf/sockaddr "transport address". In the case of an AF_LOCAL address, it was missing the code to actually point the netbuf at the newly allocated sockaddr_un, so the caller ended up with a netbuf containing junk. Submitted by: Martin Blapp <mb@imp.ch>
This commit is contained in:
parent
025f2858dd
commit
f2b95b20dc
1 changed files with 2 additions and 0 deletions
|
|
@ -710,6 +710,8 @@ __rpc_uaddr2taddr_af(int af, const char *uaddr)
|
|||
memset(sun, 0, sizeof *sun);
|
||||
sun->sun_family = AF_LOCAL;
|
||||
strncpy(sun->sun_path, addrstr, sizeof(sun->sun_path) - 1);
|
||||
ret->len = ret->maxlen = sun->sun_len = SUN_LEN(sun);
|
||||
ret->buf = sun;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue