]> Pileus Git - ~andy/fetchmail/commitdiff
Don't convert service to port and back, but pass service to plugin.
authorMatthias Andree <matthias.andree@gmx.de>
Wed, 3 Aug 2005 22:04:45 +0000 (22:04 -0000)
committerMatthias Andree <matthias.andree@gmx.de>
Wed, 3 Aug 2005 22:04:45 +0000 (22:04 -0000)
svn path=/trunk/; revision=4233

socket.c

index daacedd1d7a84b0ee53c4d4d84c2cd4238b3b577..698148c4a88d28b54e26046fe8b4dd3da0e242db 100644 (file)
--- 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 */