Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 685224 Details for
Bug 768030
net-misc/minidlna leaks sockets, becomes unresponsive
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fixes leaked sockets by correctly initialising the ev struct
fix-leaked-sockets.patch (text/plain), 1.15 KB, created by
peteru
on 2021-01-30 20:46:33 UTC
(
hide
)
Description:
Fixes leaked sockets by correctly initialising the ev struct
Filename:
MIME Type:
Creator:
peteru
Created:
2021-01-30 20:46:33 UTC
Size:
1.15 KB
patch
obsolete
>diff --git a/upnpevents.c b/upnpevents.c >index 4de6ce8..1126fa7 100644 >--- a/upnpevents.c >+++ b/upnpevents.c >@@ -290,18 +290,17 @@ upnp_event_create_notify(struct subscriber *sub) > addr.sin_family = AF_INET; > inet_aton(obj->addrstr, &addr.sin_addr); > addr.sin_port = htons(port); >- DPRINTF(E_DEBUG, L_HTTP, "%s: '%s' %hu '%s'\n", "upnp_event_notify_connect", >+ DPRINTF(E_DEBUG, L_HTTP, "%s: '%s' %hu '%s'\n", "upnp_event_create_notify", > obj->addrstr, port, obj->path); > obj->state = EConnecting; >+ obj->ev = (struct event ){ .fd = s, .rdwr = EVENT_WRITE, >+ .process = upnp_event_process_notify, .data = obj }; >+ event_module.add(&obj->ev); > if(connect(s, (struct sockaddr *)&addr, sizeof(addr)) < 0) { > if(errno != EINPROGRESS && errno != EWOULDBLOCK) { >- DPRINTF(E_ERROR, L_HTTP, "%s: connect(): %s\n", "upnp_event_notify_connect", strerror(errno)); >+ DPRINTF(E_ERROR, L_HTTP, "%s: connect(): %s\n", "upnp_event_create_notify", strerror(errno)); > obj->state = EError; > } >- } else { >- obj->ev = (struct event ){ .fd = s, .rdwr = EVENT_WRITE, >- .process = upnp_event_process_notify, .data = obj }; >- event_module.add(&obj->ev); > } > > return;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 768030
: 685224