Browse Source

geoip: continent code attribute name changed to contc

- similar pattern like for the other attributes
Daniel-Constantin Mierla 10 years ago
parent
commit
0d0bf30963
1 changed files with 2 additions and 5 deletions
  1. 2 5
      modules/geoip/geoip_pv.c

+ 2 - 5
modules/geoip/geoip_pv.c

@@ -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;
@@ -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,