Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/ftp don't search for trailing `; type=' in a NULL pat...
details: https://anonhg.NetBSD.org/src/rev/295f32e3c911
branches: trunk
changeset: 474052:295f32e3c911
user: lukem <lukem%NetBSD.org@localhost>
date: Sun Jun 27 01:17:19 1999 +0000
description:
don't search for trailing `;type=' in a NULL path...
fixes [bin/7800] by Mason Loring Bliss <mason%acheron.middleboro.ma.us@localhost>
diffstat:
usr.bin/ftp/fetch.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r c11c3e75f123 -r 295f32e3c911 usr.bin/ftp/fetch.c
--- a/usr.bin/ftp/fetch.c Sun Jun 27 00:59:45 1999 +0000
+++ b/usr.bin/ftp/fetch.c Sun Jun 27 01:17:19 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fetch.c,v 1.57 1999/06/24 14:48:35 christos Exp $ */
+/* $NetBSD: fetch.c,v 1.58 1999/06/27 01:17:19 lukem Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: fetch.c,v 1.57 1999/06/24 14:48:35 christos Exp $");
+__RCSID("$NetBSD: fetch.c,v 1.58 1999/06/27 01:17:19 lukem Exp $");
#endif /* not lint */
/*
@@ -1091,8 +1091,7 @@
*/
/* check for trailing ';type=[aid]' */
- cp = strrchr(path, ';');
- if (cp != NULL) {
+ if (path != NULL && (cp = strrchr(path, ';')) != NULL) {
if (strcasecmp(cp, ";type=a") == 0)
type = TYPE_A;
else if (strcasecmp(cp, ";type=i") == 0)
Home |
Main Index |
Thread Index |
Old Index