diff options
author | 1999-02-23 21:27:15 +0000 | |
---|---|---|
committer | 1999-02-23 21:27:15 +0000 | |
commit | 029e94c59fbccd34e5ded11952b03546192cd4ad (patch) | |
tree | c0e1dfe55ed5367ce44509d72ac7f75115087133 /usr.bin/rdist/client.c | |
parent | Make ampwarn access conditional upon NAPM so kernels that do (diff) | |
download | wireguard-openbsd-029e94c59fbccd34e5ded11952b03546192cd4ad.tar.xz wireguard-openbsd-029e94c59fbccd34e5ded11952b03546192cd4ad.zip |
Check lp->target for NULL, not *lp->target as required by dynamic allocation introduce in rev 1.8
Diffstat (limited to 'usr.bin/rdist/client.c')
-rw-r--r-- | usr.bin/rdist/client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/rdist/client.c b/usr.bin/rdist/client.c index 22166100492..4f607ff3d08 100644 --- a/usr.bin/rdist/client.c +++ b/usr.bin/rdist/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.9 1999/02/06 01:52:23 millert Exp $ */ +/* $OpenBSD: client.c,v 1.10 1999/02/23 21:27:15 millert Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. @@ -39,7 +39,7 @@ static char RCSid[] = "$From: client.c,v 6.80 1996/02/28 20:34:27 mcooper Exp $"; #else static char RCSid[] = -"$OpenBSD: client.c,v 1.9 1999/02/06 01:52:23 millert Exp $"; +"$OpenBSD: client.c,v 1.10 1999/02/23 21:27:15 millert Exp $"; #endif static char sccsid[] = "@(#)client.c"; @@ -366,7 +366,7 @@ static int sendhardlink(opts, lp, rname, destdir) "sendhardlink: rname='%s' pathname='%s' src='%s' target='%s'\n", rname, lp->pathname, lp->src, lp->target); - if (*lp->target == CNULL) + if (lp->target == NULL) (void) sendcmd(C_RECVHARDLINK, "%o %s %s", opts, lp->pathname, rname); else { |