summaryrefslogtreecommitdiff
path: root/pop3e.c
diff options
context:
space:
mode:
authorSunil Nimmagadda <sunil@nimmagadda.net>2014-09-05 10:23:50 +0500
committerSunil Nimmagadda <sunil@nimmagadda.net>2014-09-05 10:23:50 +0500
commit5307391aa9ef1188cc872aede5bdbf9e977fb75f (patch)
tree5de905ba946c54107ca565a78c15bae94fa76668 /pop3e.c
parent3b17edbbcaaa631c631453276c58bdc9a8773f58 (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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pop3e.c b/pop3e.c
index 728df72..1bd8635 100644
--- a/pop3e.c
+++ b/pop3e.c
@@ -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