projects
/
cascardo
/
rnetproxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix memory leak: destroy channel layer when closing.
[cascardo/rnetproxy.git]
/
popproxy.c
diff --git
a/popproxy.c
b/popproxy.c
index
27f8a00
..
3882f75
100644
(file)
--- a/
popproxy.c
+++ b/
popproxy.c
@@
-31,7
+31,7
@@
#include "ssl.h"
#include "pop.h"
#include "ssl.h"
#include "pop.h"
-#include "
iochannel
.h"
+#include "
hcconn
.h"
#include "tcp_connect.h"
#define CONFFILE SYSCONFDIR "/popproxy.conf"
#include "tcp_connect.h"
#define CONFFILE SYSCONFDIR "/popproxy.conf"
@@
-54,7
+54,8
@@
void new_client (int fd, struct sockaddr* addr, socklen_t saddr, gpointer data)
}
g_message ("Received connection from %s.",
inet_ntoa (((struct sockaddr_in *) addr)->sin_addr));
}
g_message ("Received connection from %s.",
inet_ntoa (((struct sockaddr_in *) addr)->sin_addr));
- conn = hc_conn_new (fd, NULL, NULL);
+ conn = hc_conn_new (NULL, NULL);
+ hc_conn_set_driver_channel (conn, fd);
hook = ssl_hook_new (conn, address->server, address->port);
pop_hook_new (hook);
}
hook = ssl_hook_new (conn, address->server, address->port);
pop_hook_new (hook);
}