Log malloc errors with LOG_LEVEL_ERROR

master
Pavel Roskin 8 years ago
parent 9ac592b218
commit 424cef464b

@ -37,7 +37,7 @@ scp_connection_create(int sck)
if (0 == conn)
{
log_message(LOG_LEVEL_WARNING, "[connection:%d] connection create: malloc error", __LINE__);
log_message(LOG_LEVEL_ERROR, "[connection:%d] connection create: malloc error", __LINE__);
return 0;
}

@ -42,7 +42,7 @@ scp_session_create()
if (0 == s)
{
log_message(LOG_LEVEL_WARNING, "[session:%d] session create: malloc error", __LINE__);
log_message(LOG_LEVEL_ERROR, "[session:%d] session create: malloc error", __LINE__);
return 0;
}

Loading…
Cancel
Save