From 1cc413a28df645aeb7170ac7524a05abf501e6ab Mon Sep 17 00:00:00 2001 From: paltas Date: Sun, 23 Oct 2005 13:56:51 +0000 Subject: [PATCH] Fixed max comm --- util/maxcomm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/util/maxcomm.c b/util/maxcomm.c index 9f6aba1..1e8572b 100644 --- a/util/maxcomm.c +++ b/util/maxcomm.c @@ -262,7 +262,6 @@ int main(void) struct dirent * dirp = NULL; DIR* dir = NULL; - negotiateTelnetOptions(1); if ((s = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) { @@ -287,6 +286,9 @@ int main(void) } } + negotiateTelnetOptions(1); + + len = strlen(remote.sun_path) + sizeof(remote.sun_family); if (connect(s, (struct sockaddr *)&remote, len) == -1) {