From: Jeffrey Altman Date: Mon, 8 Jun 2009 22:42:01 +0000 (+0000) Subject: windows-search-cell-registry-20090608 X-Git-Tag: openafs-devel-1_5_61~239 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=7bf6fd6bcbdcb87544798c9634618fccb4678f45;p=packages%2Fo%2Fopenafs.git windows-search-cell-registry-20090608 LICENSE MIT do not clear the newCellNamep buffer on error. that is inconsistent with the other SearchCell functions and breaks "fs newcell". --- diff --git a/src/WINNT/afsd/cm_config.c b/src/WINNT/afsd/cm_config.c index 04e35580d..e43df19e2 100644 --- a/src/WINNT/afsd/cm_config.c +++ b/src/WINNT/afsd/cm_config.c @@ -453,8 +453,6 @@ long cm_SearchCellRegistry(afs_uint32 client, } if ( !bFound ) { - if (newCellNamep) - newCellNamep[0] = '\0'; RegCloseKey(hkCellServDB); return CM_ERROR_NOSUCHCELL; }