chg: [client] check if hmaczero could be allocated

pull/23/head
Gerard Wagener 2019-01-17 14:54:27 +01:00
parent 5cce7ee139
commit c879a22cf2
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ void d4_transfert(d4_t* d4)
hmac = calloc(1,SZHMAC);
hmaczero = calloc(1,SZHMAC);
//TODO error handling -> insert error message
if ((buf == NULL) && (hmac == NULL))
if ((buf == NULL) && (hmac == NULL) && (hmaczero == NULL))
return;
d4_prepare_header(d4);