summaryrefslogtreecommitdiff
path: root/net/asterisk/files/patch-AST-2016-003
diff options
context:
space:
mode:
Diffstat (limited to 'net/asterisk/files/patch-AST-2016-003')
-rw-r--r--net/asterisk/files/patch-AST-2016-00328
1 files changed, 0 insertions, 28 deletions
diff --git a/net/asterisk/files/patch-AST-2016-003 b/net/asterisk/files/patch-AST-2016-003
deleted file mode 100644
index 537e5055ac98..000000000000
--- a/net/asterisk/files/patch-AST-2016-003
+++ /dev/null
@@ -1,28 +0,0 @@
-diff --git a/main/udptl.c b/main/udptl.c
-index a8244e8..6960487 100644
---- main/udptl.c
-+++ main/udptl.c
-@@ -231,16 +231,15 @@ static int decode_open_type(uint8_t *buf, unsigned int limit, unsigned int *len,
- if (decode_length(buf, limit, len, &octet_cnt) != 0)
- return -1;
-
-- if (octet_cnt > 0) {
-- /* Make sure the buffer contains at least the number of bits requested */
-- if ((*len + octet_cnt) > limit)
-- return -1;
--
-- *p_num_octets = octet_cnt;
-- *p_object = &buf[*len];
-- *len += octet_cnt;
-+ /* Make sure the buffer contains at least the number of bits requested */
-+ if ((*len + octet_cnt) > limit) {
-+ return -1;
- }
-
-+ *p_num_octets = octet_cnt;
-+ *p_object = &buf[*len];
-+ *len += octet_cnt;
-+
- return 0;
- }
- /*- End of function --------------------------------------------------------*/