Commit 0fd11eca authored by baire's avatar baire
Browse files

support multiple via in the same line

parent 74c329ea
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -1386,6 +1386,17 @@ void ViaBody_List::PreDecode (Buffer& buffer) throw (DecodeError)
	SetHypAppend (1);
}

void ViaBody_List::PostDecodeField (int id, Buffer& buffer) throw (DecodeError)
{
	Regex reg_comma ("^" SIPREG_COMMA);

	if (reg_comma.Match(buffer)) {
		reg_comma.MovePast(buffer);

		SetHypSize (GetSize() + 1);
	}
}

void UndefinedHeader_List::PreDecode (Buffer& buffer) throw (DecodeError)
{
	// we assume that we are decoding one field at onece