From 2f0998ff13fe55e74011bd32317697274f807cc5 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Mon, 24 May 2010 16:12:24 -0400 Subject: [PATCH] getcapabilities avoid panic when cell is not filled for a new server, getcapabilities is not safe, as cell may not be filled. Change-Id: I0926034c1d9e9c8c08e7ca993de1bcef9c0de8cf Reviewed-on: http://gerrit.openafs.org/2016 Reviewed-by: Russ Allbery Reviewed-by: Simon Wilkinson Reviewed-by: Marc Dionne Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/afs/afs_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afs/afs_server.c b/src/afs/afs_server.c index 7b5949ccde..32c2891d8e 100644 --- a/src/afs/afs_server.c +++ b/src/afs/afs_server.c @@ -1696,7 +1696,7 @@ afs_GetCapabilities(struct server *ts) struct unixuser *tu; afs_int32 code; - if ( !ts ) + if ( !ts || !ts->cell ) return; if ( !afs_osi_credp ) return;