Pārlūkot izejas kodu

core: free parsed Required header structure

Daniel-Constantin Mierla 8 gadi atpakaļ
vecāks
revīzija
d31558b31f
2 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 1 1
      src/core/parser/hf.c
  2. 2 2
      src/core/parser/parse_require.c

+ 1 - 1
src/core/parser/hf.c

@@ -154,6 +154,7 @@ void clean_hdr_field(struct hdr_field* const hf)
 			free_subscription_state((subscription_state_t**)h_parsed);
 			free_subscription_state((subscription_state_t**)h_parsed);
 			break;
 			break;
 
 
+		case HDR_REQUIRE_T:
 		case HDR_SUPPORTED_T:
 		case HDR_SUPPORTED_T:
 			hdr_free_parsed(h_parsed);
 			hdr_free_parsed(h_parsed);
 			break;
 			break;
@@ -172,7 +173,6 @@ void clean_hdr_field(struct hdr_field* const hf)
 		case HDR_CONTENTTYPE_T:
 		case HDR_CONTENTTYPE_T:
 		case HDR_CONTENTLENGTH_T:
 		case HDR_CONTENTLENGTH_T:
 		case HDR_RETRY_AFTER_T:
 		case HDR_RETRY_AFTER_T:
-		case HDR_REQUIRE_T:
 		case HDR_PROXYREQUIRE_T:
 		case HDR_PROXYREQUIRE_T:
 		case HDR_UNSUPPORTED_T:
 		case HDR_UNSUPPORTED_T:
 		case HDR_ACCEPTLANGUAGE_T:
 		case HDR_ACCEPTLANGUAGE_T:

+ 2 - 2
src/core/parser/parse_require.c

@@ -1,6 +1,6 @@
 /*
 /*
  * Copyright (C) 2006 Andreas Granig <[email protected]>
  * Copyright (C) 2006 Andreas Granig <[email protected]>
- * 
+ *
  * This file is part of Kamailio, a free SIP server.
  * This file is part of Kamailio, a free SIP server.
  *
  *
  * Kamailio is free software; you can redistribute it and/or modify
  * Kamailio is free software; you can redistribute it and/or modify
@@ -65,7 +65,7 @@ int parse_require( struct sip_msg *msg)
 		require |= rb->option_tags;
 		require |= rb->option_tags;
 	}
 	}
 
 
-	((struct option_tag_body*)msg->require->parsed)->option_tags_all = 
+	((struct option_tag_body*)msg->require->parsed)->option_tags_all =
 		require;
 		require;
 	return 0;
 	return 0;
 }
 }