aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 */