Displaying 4 results from an estimated 4 matches for "parse_dns_response".
2005 Nov 04
1
[Bug 1111] memory leak in openbsd-compat/getrrsetbyname.c, function: getrrsetbyname
...Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ssh
        AssignedTo: bitbucket at mindrot.org
        ReportedBy: kremenek at cs.stanford.edu
In the function getrrsetbyname...
memory allocated by the call to parse_dns_response (which calls calloc):
        /* parse result */
        response = parse_dns_response(answer, length);
... appears to be leaked on all paths in this function.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
2003 Nov 06
2
openssh-3.7.1p2 on HP-UX 10.20
...e.c:207: warning: implicit declaration of function `res_query'
getrrsetbyname.c:265: `T_SIG' undeclared (first use in this function)
getrrsetbyname.c:265: (Each undeclared identifier is reported only once
getrrsetbyname.c:265: for each function it appears in.)
getrrsetbyname.c: In function `parse_dns_response':
getrrsetbyname.c:366: `HFIXEDSZ' undeclared (first use in this function)
getrrsetbyname.c: In function `parse_dns_qsection':
getrrsetbyname.c:437: warning: implicit declaration of function `dn_expand'
*** Error exit code 1
Stop.
*** Error exit code 1
Stop. 
 
 
Any clue?
 
Thank...
2007 May 21
1
[PATCH] Add support for ldns
...+#include <ldns/ldns.h>
+#endif
+
 #include "getrrsetbyname.h"
+#include "log.h"
 
 #if defined(HAVE_DECL_H_ERRNO) && !HAVE_DECL_H_ERRNO
 extern int h_errno;
@@ -170,6 +176,9 @@
 	struct dns_rr		*additional;
 };
 
+
+#ifndef HAVE_LDNS
+
 static struct dns_response *parse_dns_response(const u_char *, int);
 static struct dns_query *parse_dns_qsection(const u_char *, int,
     const u_char **, int);
@@ -345,37 +354,6 @@
 	return (result);
 }
 
-void
-freerrset(struct rrsetinfo *rrset)
-{
-	u_int16_t i;
-
-	if (rrset == NULL)
-		return;
-
-	if (rrset->rri_rdatas) {
-		for (i =...
2003 Dec 30
8
[Bug 651] SCO 3.2v4.2 and OpenSSH 3.7.1p1 --> connection hangs and does not close (ssh2 only)
http://bugzilla.mindrot.org/show_bug.cgi?id=651
------- Additional Comments From vikashb at comparexafrica.co.za  2003-12-30 16:39 -------
tried openssh-SNAP-20031223
does not compile:
        (cd openbsd-compat && make)
        gcc -g -O2 -Wall -Wpointer-arith -Wno-uninitialized -I. -I.. -I. -I./..
-I/usr/local/ssl/include  -Dftruncate=chsize -I/usr/local/include
-DHAVE_CONFIG_H -c