From 868378cc00b9ac7016da3dc457abf3fa2016687c Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Thu, 26 Apr 2012 09:24:25 -0400 Subject: [PATCH] libafs: don't crash on no addresses in afs_Conn we try to avoid a crash on a missing serverHost; do the same on missing addrs in that host FIXES 130714 Change-Id: Ic6bab8654cf7bf85351a9482b9ba5d51e5a768d5 Reviewed-on: http://gerrit.openafs.org/7287 Reviewed-by: Michael Meffie Tested-by: BuildBot Reviewed-by: Andrew Deason Reviewed-by: Derrick Brashear --- src/afs/afs_conn.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/afs/afs_conn.c b/src/afs/afs_conn.c index 09d7d8f04c..8b2dd73771 100644 --- a/src/afs/afs_conn.c +++ b/src/afs/afs_conn.c @@ -301,6 +301,7 @@ afs_Conn(struct VenusFid *afid, struct vrequest *areq, /* First is always lowest rank, if it's up */ if ((tv->status[0] == not_busy) && tv->serverHost[0] + && tv->serverHost[0]->addr && !(tv->serverHost[0]->addr->sa_flags & SRVR_ISDOWN) && !(((areq->idleError > 0) || (areq->tokenError > 0)) && (areq->skipserver[0] == 1)))