~ubuntu-branches/ubuntu/raring/maradns/raring

« back to all changes in this revision

Viewing changes to update/1.3.06/maradns-1.3.05-doublefree.patch

  • Committer: Bazaar Package Importer
  • Author(s): Kai Hendry
  • Date: 2010-01-24 12:17:40 UTC
  • mfrom: (1.1.13 upstream) (10.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100124121740-a4e1fjobwaouz443
Tags: 1.4.02-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
This patch fixes a double-free that the 1.2.12.06 memleak patch
2
 
accidently introduced.  This is a non-critical double-free; it will
3
 
actually never be triggered because the underlying js_alloc() (called by
4
 
js_create()) will terminate MaraDNS should she be unable to 
5
 
allocate memory.  
6
 
 
7
 
--- maradns-1.3.06/server/MaraDNS.c.orig        2007-06-10 10:34:42.000000000 -0500
8
 
+++ maradns-1.3.06/server/MaraDNS.c     2007-06-10 10:35:13.000000000 -0500
9
 
@@ -3122,7 +3122,6 @@
10
 
         return JS_ERROR;
11
 
         }
12
 
     if((origq = js_create(256,1)) == 0) {
13
 
-        js_destroy(lookfor);
14
 
         udperror(sock,raw,0,0,SERVER_FAIL,"can't create origq string",2,
15
 
                        desires_recursion,ect,1);
16
 
         js_destroy(lookfor);