From 73ea71b2d37443edd0d86b819e0a43ab3cf26df9 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Tue, 2 Mar 2010 06:42:41 -0500 Subject: [PATCH] support mariner messages sans vcache if a mariner message is passed in without a vcache, print it as-is Change-Id: I1791102826db3cde484e0809ba79d54f22220be1 Reviewed-on: http://gerrit.openafs.org/1504 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/afs/afs_mariner.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/afs/afs_mariner.c b/src/afs/afs_mariner.c index e1ae262d3..66711dc3e 100644 --- a/src/afs/afs_mariner.c +++ b/src/afs/afs_mariner.c @@ -92,10 +92,12 @@ afs_MarinerLog(register char *astring, register struct vcache *avc) strcpy(tp, astring); tp += strlen(astring); - *tp++ = ' '; - tp1 = afs_GetMariner(avc); - strcpy(tp, tp1); - tp += strlen(tp1); + if (avc) { + *tp++ = ' '; + tp1 = afs_GetMariner(avc); + strcpy(tp, tp1); + tp += strlen(tp1); + } *tp++ = '\n'; /* note, console doesn't want a terminating null */ /* I don't care if mariner packets fail to be sent */ -- 2.39.5