~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Oops; remembering to call term_provide_resize_fn in the Unix front
[sgt/putty]
/
proxy.c
diff --git
a/proxy.c
b/proxy.c
index
9e3684c
..
1bcb2b2
100644
(file)
--- a/
proxy.c
+++ b/
proxy.c
@@
-8,6
+8,8
@@
#include <windows.h>
#include <assert.h>
#include <windows.h>
#include <assert.h>
+#include <ctype.h>
+#include <string.h>
#define DEFINE_PLUG_METHOD_MACROS
#include "putty.h"
#define DEFINE_PLUG_METHOD_MACROS
#include "putty.h"
@@
-646,7
+648,7
@@
int proxy_socks4_negotiate (Proxy_Socket p, int change)
}
length = strlen(cfg.proxy_username) + 9;
}
length = strlen(cfg.proxy_username) + 9;
- command = (char*) malloc(length);
+ command = (char*)
s
malloc(length);
strcpy(command + 8, cfg.proxy_username);
command[0] = 4; /* version 4 */
strcpy(command + 8, cfg.proxy_username);
command[0] = 4; /* version 4 */
@@
-660,7
+662,7
@@
int proxy_socks4_negotiate (Proxy_Socket p, int change)
sk_addrcopy(p->remote_addr, command + 4);
sk_write(p->sub_socket, command, length);
sk_addrcopy(p->remote_addr, command + 4);
sk_write(p->sub_socket, command, length);
- free(command);
+
s
free(command);
p->state = 1;
return 0;
p->state = 1;
return 0;