Browse code

pv: added breaks in case of mismatching via var name

Daniel-Constantin Mierla authored on 10/08/2021 08:10:44
Showing 1 changed files
... ...
@@ -4488,6 +4488,7 @@ int pv_parse_via_name(pv_spec_p sp, str *in)
4488 4488
 			if(in->s[0]=='i')
4489 4489
 				sp->pvp.pvn.u.isname.name.n = 7;
4490 4490
 			else goto error;
4491
+		break;
4491 4492
 		case 4:
4492 4493
 			if(strncmp(in->s, "host", 4)==0)
4493 4494
 				sp->pvp.pvn.u.isname.name.n = 0;
... ...
@@ -4511,6 +4512,7 @@ int pv_parse_via_name(pv_spec_p sp, str *in)
4511 4512
 			if(strncmp(in->s, "protoid", 7)==0)
4512 4513
 				sp->pvp.pvn.u.isname.name.n = 3;
4513 4514
 			else goto error;
4515
+		break;
4514 4516
 		case 8:
4515 4517
 			if(strncmp(in->s, "received", 8)==0)
4516 4518
 				sp->pvp.pvn.u.isname.name.n = 6;