DEVEL15-windows-search-cell-registry-20090608
authorJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 19 Jun 2009 04:12:09 +0000 (04:12 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 19 Jun 2009 04:12:09 +0000 (04:12 +0000)
LICENSE MIT

do not clear the newCellNamep buffer on error.
that is inconsistent with the other SearchCell functions
and breaks "fs newcell".

(cherry picked from commit 7bf6fd6bcbdcb87544798c9634618fccb4678f45)

src/WINNT/afsd/cm_config.c

index 04e3558..e43df19 100644 (file)
@@ -453,8 +453,6 @@ long cm_SearchCellRegistry(afs_uint32 client,
         }
 
         if ( !bFound ) {
-            if (newCellNamep)
-                newCellNamep[0] = '\0';
             RegCloseKey(hkCellServDB);
             return CM_ERROR_NOSUCHCELL;
         }