diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2003-03-27 20:44:09 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2003-03-27 20:44:09 +0000 |
commit | 8cd56990480c7236dfdd7eb2f2954a2653686949 (patch) | |
tree | 54948b50604ac733c1dbc98de1948245003da6b3 /usr.sbin | |
parent | 8ee63f6eae00aee679303916e24b6ac15af709ef (diff) | |
download | src-8cd56990480c7236dfdd7eb2f2954a2653686949.tar.gz src-8cd56990480c7236dfdd7eb2f2954a2653686949.zip |
Don't pass NULL in as a flags argument to libfetch's fetchGetURL()
as this can result in a NULL pointer deference when parsing the
flags later. This change fixes "pkg_add -r" on 5.0-CURRENT for
me; not quite clear how the problem was introduced.
Notes
Notes:
svn path=/head/; revision=112722
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_install/lib/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pkg_install/lib/url.c b/usr.sbin/pkg_install/lib/url.c index 5ee33f367477..f43e464c4d5c 100644 --- a/usr.sbin/pkg_install/lib/url.c +++ b/usr.sbin/pkg_install/lib/url.c @@ -89,7 +89,7 @@ fileGetURL(const char *base, const char *spec) else strcpy(fname, spec); - if ((ftp = fetchGetURL(fname, Verbose ? "v" : NULL)) == NULL) { + if ((ftp = fetchGetURL(fname, Verbose ? "v" : "")) == NULL) { printf("Error: FTP Unable to get %s: %s\n", fname, fetchLastErrString); return NULL; |