Skip to content

Commit

Permalink
[drouting] Fix bogus malloc test, c'n'p error
Browse files Browse the repository at this point in the history
Thank you CI for catching this ;)
  • Loading branch information
bogdan-iancu committed Sep 16, 2022
1 parent 4c7a7a8 commit a51026a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/drouting/drouting.c
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ static void dr_prob_handler(unsigned int ticks, void* param)

/* build its pack, so we can build and send the prob later */
pack = shm_malloc(sizeof(struct gw_prob_pack)+4+dst->ip_str.len);
if( params==0 ) {
if( pack==0 ) {
LM_ERR("no more shm memory!\n");
/* send whatever probs we have so far */
break;
Expand Down

0 comments on commit a51026a

Please sign in to comment.