Skip to content

Commit

Permalink
- fixed bogus test in checking the flags for save() function.
Browse files Browse the repository at this point in the history
  Credits for reporting and help in troubleshooting go to Nathaniel L Keeling III
  • Loading branch information
bogdan-iancu committed May 24, 2013
1 parent 5c24d2a commit 9392d70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/registrar/save.c
Expand Up @@ -744,7 +744,7 @@ int save_aux(struct sip_msg* _m, str* forced_binding, char* _d, char* _f, char*
sctx.max_contacts = -1;

sctx.flags = 0;
if (_f && _f[0]!=0) {
if ( _f ) {
if (fixup_get_svalue( _m, (gparam_p)_f, &flags_s)!=0) {
LM_ERR("invalid flags parameter");
return -1;
Expand Down

0 comments on commit 9392d70

Please sign in to comment.