mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 10:57:01 +00:00
calloc memory rather than mallocing it - can't hurt too much, and is
probably a bit safer --HG-- extra : convert_revision : bbd2edbb1410ea8fd7bee089f60154f76d2a0ab7
This commit is contained in:
parent
448a05ae2c
commit
a41f9dc036
2
dbutil.c
2
dbutil.c
@ -544,7 +544,7 @@ void * m_malloc(size_t size) {
|
|||||||
if (size == 0) {
|
if (size == 0) {
|
||||||
dropbear_exit("m_malloc failed");
|
dropbear_exit("m_malloc failed");
|
||||||
}
|
}
|
||||||
ret = malloc(size);
|
ret = calloc(1, size);
|
||||||
if (ret == NULL) {
|
if (ret == NULL) {
|
||||||
dropbear_exit("m_malloc failed");
|
dropbear_exit("m_malloc failed");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user