2009-11-16 16:07:39 +01:00
|
|
|
Index: pr3287-3.3/telnet.c
|
|
|
|
===================================================================
|
|
|
|
--- pr3287-3.3/telnet.c.orig
|
2007-01-16 00:41:45 +01:00
|
|
|
+++ pr3287-3.3/telnet.c
|
2015-04-22 13:24:03 +02:00
|
|
|
@@ -453,8 +453,13 @@ negotiate(const char *host, struct socka
|
2007-01-16 00:41:45 +01:00
|
|
|
cstate != CONNECTED_3270 && /* TN3270 */
|
|
|
|
cstate != NOT_CONNECTED) { /* gave up */
|
|
|
|
|
|
|
|
- if (net_input(s) < 0)
|
|
|
|
+ if (net_input(s) < 0) {
|
|
|
|
+ Free(netrbuf);
|
|
|
|
+ Free(ibuf);
|
|
|
|
+ netrbuf = NULL;
|
|
|
|
+ ibuf = NULL;
|
|
|
|
return -1;
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Success. */
|