Skip to content

Commit

Permalink
geoip: continent code attribute name changed to contc
Browse files Browse the repository at this point in the history
- similar pattern like for the other attributes
  • Loading branch information
miconda committed Mar 12, 2015
1 parent 95e02eb commit 0d0bf30
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions modules/geoip/geoip_pv.c
Expand Up @@ -210,10 +210,7 @@ int pv_parse_geoip_name(pv_spec_p sp, str *in)
case 5:
if(strncmp(pvs.s, "metro", 5)==0)
gpv->type = 12;
else goto error;
break;
case 6:
if(strncmp(pvs.s, "contid", 6)==0)
else if(strncmp(pvs.s, "contc", 5)==0)
gpv->type = 13;
else goto error;
break;
Expand Down Expand Up @@ -354,7 +351,7 @@ int pv_get_geoip(struct sip_msg *msg, pv_param_t *param,
return pv_get_null(msg, param, res);
return pv_get_sintval(msg, param, res,
gpv->item->r.record->metro_code);
case 13: /* contid */
case 13: /* contc */
if(gpv->item->r.record==NULL)
return pv_get_null(msg, param, res);
return pv_geoip_get_strzval(msg, param, res,
Expand Down

0 comments on commit 0d0bf30

Please sign in to comment.