#define crStop(z) do{ crLine = 0; return (z); }while(0)
#define crStopV do{ crLine = 0; return; }while(0)
#define crStop(z) do{ crLine = 0; return (z); }while(0)
#define crStopV do{ crLine = 0; return; }while(0)
static void s_write (char *buf, int len) {
while (len > 0) {
int i = send (s, buf, len, 0);
static void s_write (char *buf, int len) {
while (len > 0) {
int i = send (s, buf, len, 0);
- pktout.data = (pktout.data == NULL ? malloc(biglen+4) :
- realloc(pktout.data, biglen+4));
+ pktout.data = (pktout.data == NULL ? malloc(biglen) :
+ realloc(pktout.data, biglen));
sprintf(vstring, "SSH-%s-7.7.7\n",
(strcmp(version, "1.5") <= 0 ? version : "1.5"));
sprintf(vstring, "SSH-%s-7.7.7\n",
(strcmp(version, "1.5") <= 0 ? version : "1.5"));
} else if (pktin.type == 1) {
/* SSH_MSG_DISCONNECT: do nothing */
} else if (pktin.type == 14) {
} else if (pktin.type == 1) {
/* SSH_MSG_DISCONNECT: do nothing */
} else if (pktin.type == 14) {