From: Jeffrey Altman Date: Fri, 25 Aug 2006 16:25:21 +0000 (+0000) Subject: STABLE14-windows-cm_volume-recycling-20060825 X-Git-Tag: openafs-stable-1_4_2fc2~14 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=90b44c19a0b4bc48f4374916296c8ead97b1953c;p=packages%2Fo%2Fopenafs.git STABLE14-windows-cm_volume-recycling-20060825 do not panic if we reach maxVolumes and there is a volume entry that can be recycled. (cherry picked from commit 375a79f2a02ff2c16f9fcc54dba2b51e41b51c05) --- diff --git a/src/WINNT/afsd/cm_volume.c b/src/WINNT/afsd/cm_volume.c index 04e5553cb..3bf9a656c 100644 --- a/src/WINNT/afsd/cm_volume.c +++ b/src/WINNT/afsd/cm_volume.c @@ -436,7 +436,8 @@ long cm_GetVolumeByName(struct cm_cell *cellp, char *volumeNamep, break; } } - osi_panic("Exceeded Max Volumes", __FILE__, __LINE__); + if (!volp) + osi_panic("Exceeded Max Volumes", __FILE__, __LINE__); } if (volp) {