windows-search-cell-registry-20090608
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 8 Jun 2009 22:42:01 +0000 (22:42 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 8 Jun 2009 22:42:01 +0000 (22:42 +0000)
LICENSE MIT

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

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;
         }