Return to cipher.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.100, 2015/01/14 10:29:45 | version 1.101, 2015/12/10 17:08:40 | ||
---|---|---|---|
|
|
||
if (cipher->discard_len > 0) { | if (cipher->discard_len > 0) { | ||
if ((junk = malloc(cipher->discard_len)) == NULL || | if ((junk = malloc(cipher->discard_len)) == NULL || | ||
(discard = malloc(cipher->discard_len)) == NULL) { | (discard = malloc(cipher->discard_len)) == NULL) { | ||
if (junk != NULL) | free(junk); | ||
free(junk); | |||
ret = SSH_ERR_ALLOC_FAIL; | ret = SSH_ERR_ALLOC_FAIL; | ||
goto bad; | goto bad; | ||
} | } |