diff options
author | joerg <joerg> | 2010-06-13 21:38:08 +0000 |
---|---|---|
committer | joerg <joerg> | 2010-06-13 21:38:08 +0000 |
commit | 8490a7d10e54dbf59fb04db45f3b1a23c857a64c (patch) | |
tree | 6200df98edfdc3e149ccf8e4a36e930589bade91 | |
parent | 1ef63d8475b3c83b79b179ecb7e9623d39572ce1 (diff) | |
download | pkgsrc-8490a7d10e54dbf59fb04db45f3b1a23c857a64c.tar.gz |
libfetch-2.32:
Fix NULL dereference after failed calloc call. From Tavian Barnes.
-rw-r--r-- | net/libfetch/Makefile | 4 | ||||
-rw-r--r-- | net/libfetch/files/common.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/net/libfetch/Makefile b/net/libfetch/Makefile index 97e3b71a71d..daadd8c9fad 100644 --- a/net/libfetch/Makefile +++ b/net/libfetch/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.38 2010/03/21 16:48:42 joerg Exp $ +# $NetBSD: Makefile,v 1.39 2010/06/13 21:38:08 joerg Exp $ # -DISTNAME= libfetch-2.31 +DISTNAME= libfetch-2.32 CATEGORIES= net MASTER_SITES= # empty DISTFILES= # empty diff --git a/net/libfetch/files/common.c b/net/libfetch/files/common.c index 5be2a8e78ca..48fba41e5b5 100644 --- a/net/libfetch/files/common.c +++ b/net/libfetch/files/common.c @@ -1,4 +1,4 @@ -/* $NetBSD: common.c,v 1.26 2010/03/21 16:48:43 joerg Exp $ */ +/* $NetBSD: common.c,v 1.27 2010/06/13 21:38:09 joerg Exp $ */ /*- * Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav * Copyright (c) 2008, 2010 Joerg Sonnenberger <joerg@NetBSD.org> @@ -316,6 +316,7 @@ fetch_connect(struct url *url, int af, int verbose) if ((conn = fetch_reopen(sd)) == NULL) { fetch_syserr(); close(sd); + return (NULL); } conn->cache_url = fetchCopyURL(url); conn->cache_af = af; |