=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ftp/util.c,v retrieving revision 1.29 retrieving revision 1.30 diff -c -r1.29 -r1.30 *** src/usr.bin/ftp/util.c 2002/03/30 17:45:44 1.29 --- src/usr.bin/ftp/util.c 2002/07/12 00:25:30 1.30 *************** *** 1,4 **** ! /* $OpenBSD: util.c,v 1.29 2002/03/30 17:45:44 deraadt Exp $ */ /* $NetBSD: util.c,v 1.12 1997/08/18 10:20:27 lukem Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: util.c,v 1.30 2002/07/12 00:25:30 deraadt Exp $ */ /* $NetBSD: util.c,v 1.12 1997/08/18 10:20:27 lukem Exp $ */ /* *************** *** 35,41 **** */ #ifndef lint ! static char rcsid[] = "$OpenBSD: util.c,v 1.29 2002/03/30 17:45:44 deraadt Exp $"; #endif /* not lint */ /* --- 35,41 ---- */ #ifndef lint ! static char rcsid[] = "$OpenBSD: util.c,v 1.30 2002/07/12 00:25:30 deraadt Exp $"; #endif /* not lint */ /* *************** *** 507,512 **** --- 507,514 ---- * free(*cpp) if that is the case */ *cpp = strdup(gl.gl_pathv[0]); + if (*cpp == NULL) + err(1, NULL); globfree(&gl); return (1); }