Skip to content

Commit

Permalink
Fixed crash when dr_state_flusher() (via timer) may be called before …
Browse files Browse the repository at this point in the history
…data is loaded (by first SIP worker)

Credits go to shimaore on GITHUB
  • Loading branch information
bogdan-iancu committed Dec 30, 2013
1 parent e4a334e commit 7565996
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/drouting/drouting.c
Expand Up @@ -432,6 +432,9 @@ static void dr_state_flusher(void)
db_key_t key_set;
db_val_t val_set;

/* is data avaialable? */
if (!rdata || !(*rdata))
return;

val_cmp.type = DB_INT;
val_cmp.nul = 0;
Expand Down

0 comments on commit 7565996

Please sign in to comment.