forked from pool/x3270
Marcus Meissner
194b28c379
- Update to 3.3.14 OBS-URL: https://build.opensuse.org/request/show/298193 OBS-URL: https://build.opensuse.org/package/show/Base:System/x3270?expand=0&rev=32
20 lines
479 B
Diff
20 lines
479 B
Diff
Index: pr3287-3.3/telnet.c
|
|
===================================================================
|
|
--- pr3287-3.3/telnet.c.orig
|
|
+++ pr3287-3.3/telnet.c
|
|
@@ -453,8 +453,13 @@ negotiate(const char *host, struct socka
|
|
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. */
|