Module: kamailio Branch: master Commit: 1a6102098f78855283064f82a9075630b92412f3 URL: https://github.com/kamailio/kamailio/commit/1a6102098f78855283064f82a9075630...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2025-01-03T12:11:22+01:00
core: socket info - let the kernet to set nl_pid value inside nl_bound_sock()
- GH #4094
---
Modified: src/core/socket_info.c
---
Diff: https://github.com/kamailio/kamailio/commit/1a6102098f78855283064f82a9075630... Patch: https://github.com/kamailio/kamailio/commit/1a6102098f78855283064f82a9075630...
---
diff --git a/src/core/socket_info.c b/src/core/socket_info.c index 13d7f53968f..b431ea395db 100644 --- a/src/core/socket_info.c +++ b/src/core/socket_info.c @@ -1389,7 +1389,7 @@ static int nl_bound_sock(void) bzero(&la, sizeof(la)); la.nl_family = AF_NETLINK; la.nl_pad = 0; - la.nl_pid = getpid(); + la.nl_pid = 0; la.nl_groups = 0; if(bind(sock, (struct sockaddr *)&la, sizeof(la)) < 0) { LM_ERR("could not bind NETLINK sock to sockaddr_nl\n");