From b7188efde616cb0083e20f0ea5377373bc49b490 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Wed, 3 Aug 2005 22:04:45 +0000 Subject: Don't convert service to port and back, but pass service to plugin. svn path=/trunk/; revision=4233 --- socket.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'socket.c') 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 */ -- cgit v1.2.3