*length = GET_32BIT(ssh->pktin.data + ssh->pktin.savedpos);
len = GET_32BIT(ssh->pktin.data + ssh->pktin.savedpos); if (len < 0) return; *length = len;
static void ssh2_pkt_getstring(Ssh ssh, char **p, int *length){    *p = NULL;    *length = 0;    if (ssh->pktin.length - ssh->pktin.savedpos < 4)	return;    *length = GET_32BIT(ssh->pktin.data + ssh->pktin.savedpos);    ssh->pktin.savedpos += 4;    if (ssh->pktin.length - ssh->pktin.savedpos < *length)	return;    *p = ssh->pktin.data + ssh->pktin.savedpos;    ssh->pktin.savedpos += *length;}