aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-08-03 22:04:45 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-08-03 22:04:45 +0000
commitb7188efde616cb0083e20f0ea5377373bc49b490 (patch)
tree34b56969e37961107ea1582e17d9f5b6e04a6c3e
parent21e62911e8884481a78f795ab22d55206ba214cd (diff)
downloadfetchmail-b7188efde616cb0083e20f0ea5377373bc49b490.tar.gz
fetchmail-b7188efde616cb0083e20f0ea5377373bc49b490.tar.bz2
fetchmail-b7188efde616cb0083e20f0ea5377373bc49b490.zip
Don't convert service to port and back, but pass service to plugin.
svn path=/trunk/; revision=4233
-rw-r--r--socket.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/socket.c b/socket.c
index daacedd1..698148c4 100644
--- a/socket.c
+++ b/socket.c
@@ -332,9 +332,7 @@ int SockOpen(const char *host, const char *service,
#ifdef HAVE_SOCKETPAIR
if (plugin) {
- char buf[10];
- snprintf(buf, sizeof(buf), "%d", clientPort);
- return handle_plugin(host,buf,plugin);
+ return handle_plugin(host,service,plugin);
}
#endif /* HAVE_SOCKETPAIR */