Diff between a779ec83c9266e552174a7490d5e5f40483699a0 and 14f93a68ba38aedb59c877d6c62eee17a89a2b7b
Changed Files
| File | Additions | Deletions | Status |
| src/profile.c | +5 | -4 | modified |
Full Patch
diff --git a/src/profile.c b/src/profile.c
index 5a4f09c..c81a9f9 100644
--- a/src/profile.c
+++ b/src/profile.c
@@ -1047,10 +1047,11 @@ static void ext_connect(GIOChannel *io, GError *err, gpointer user_data)
conn);
}
- if (conn->service && service_accept(conn->service) == 0) {
- if (send_new_connection(ext, conn))
- return;
- }
+ if (conn->service && service_accept(conn->service) < 0)
+ goto drop;
+
+ if (send_new_connection(ext, conn))
+ return;
drop:
if (conn->service)