diff options
Diffstat (limited to 'main/sipsak/fix-aaaa-record-segfault.patch')
-rw-r--r-- | main/sipsak/fix-aaaa-record-segfault.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/main/sipsak/fix-aaaa-record-segfault.patch b/main/sipsak/fix-aaaa-record-segfault.patch new file mode 100644 index 0000000000..31f5dba373 --- /dev/null +++ b/main/sipsak/fix-aaaa-record-segfault.patch @@ -0,0 +1,20 @@ +--- ./helper.c.orig 2015-03-17 15:34:48.109903801 -0100 ++++ ./helper.c 2015-03-17 16:08:02.954490213 -0100 +@@ -284,6 +284,8 @@ + aptr = parse_rr(aptr, abuf, alen); + else + aptr = skip_rr(aptr, abuf, alen); ++ if (aptr == NULL) ++ return; + } + if (caadr == 0) { + for (i = 0; i < nscount; i++) { +@@ -291,6 +293,8 @@ + } + for (i = 0; i < arcount && caadr == 0; i++) { + aptr = parse_rr(aptr, abuf, alen); ++ if (aptr == NULL) ++ return; + } + } + } |