Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: a fix needed to compile current

On Friday 08 May 2009 20:43:24 you wrote:
> Hello!
> i had to make the following fix to have the current tree compiled (checked
> out in the morning from a german mirror). This fixes a pointer being used
> uninitialised, and in some cases control could flow to free() with random
> crap in the pointer. Oh, and also fixes the compilation of the tree :D
> please attach a cc to me should you reply, as i'm not on the list.
> Greetings:
> Gergely Gábor

Sorry i forgot the file.
Index: dist/ipf/lib/load_http.c
RCS file: /cvsroot/src/dist/ipf/lib/load_http.c,v
retrieving revision 1.2
diff -u -u -r1.2 load_http.c
--- dist/ipf/lib/load_http.c    7 May 2009 21:07:34 -0000       1.2
+++ dist/ipf/lib/load_http.c    8 May 2009 18:26:03 -0000
@@ -18,7 +18,7 @@
        int fd, len, left, port, endhdr, removed;
        size_t rem;
-       char *s, *t, *u, buffer[2048], *myurl;
+       char *s, *t, *u, buffer[2048], *myurl=NULL;
        alist_t *a, *rtop, *rbot;
        struct sockaddr_in sin;
        struct hostent *host;

Attachment: signature.asc
Description: This is a digitally signed message part.

Home | Main Index | Thread Index | Old Index