diff options
author | Sunil Nimmagadda <sunil@nimmagadda.net> | 2014-09-05 10:23:50 +0500 |
---|---|---|
committer | Sunil Nimmagadda <sunil@nimmagadda.net> | 2014-09-05 10:23:50 +0500 |
commit | 5307391aa9ef1188cc872aede5bdbf9e977fb75f (patch) | |
tree | 5de905ba946c54107ca565a78c15bae94fa76668 /pop3e.c | |
parent | 3b17edbbcaaa631c631453276c58bdc9a8773f58 (diff) |
The sockaddr_storage returned by accept(2) belongs to session and
not the listener. Move it to a place where it belongs: struct
session.
Diffstat (limited to 'pop3e.c')
-rw-r--r-- | pop3e.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -176,8 +176,7 @@ pop3_accept(int fd, short events, void *arg) } set_nonblocking(s); - l->ss = ss; - session_init(l, s); + session_init(l, s, &ss); } static void |