PERFORCE change 125245 for review

Fredrik Lindberg fli at FreeBSD.org
Thu Aug 16 16:23:40 PDT 2007


http://perforce.freebsd.org/chv.cgi?CH=125245

Change 125245 by fli at fli_nexus on 2007/08/16 23:23:35

	Fix cache dump command (coding without testing is bad...)

Affected files ...

.. //depot/projects/soc2007/fli-mdns_sd/mdnsd/clisrv.c#7 edit

Differences ...

==== //depot/projects/soc2007/fli-mdns_sd/mdnsd/clisrv.c#7 (text+ko) ====

@@ -1390,13 +1390,13 @@
 		}
 		RW_WLOCK(mif, mif_lock);
 		cache_flush(&mif->mif_cache);
-		RW_WLOCK(mif, mif_lock);
+		RW_UNLOCK(mif, mif_lock);
 	}
 	else {
 		TAILQ_FOREACH(mif, &g->g_ifs_head, mif_next) {
 			RW_WLOCK(mif, mif_lock);
 			cache_flush(&mif->mif_cache);
-			RW_WLOCK(mif, mif_lock);
+			RW_UNLOCK(mif, mif_lock);
 		}
 	}
 
@@ -1477,6 +1477,8 @@
 		if (tmplen <= 0)
 			continue;
 
+		mc.mc_reclen = tmplen;
+		tmplen *= sizeof(wchar_t);
 		rmih.mih_msglen = sizeof(struct mipc_head) +
 		    sizeof(struct mipc_cache) + tmplen + rr->rr_len;
 


More information about the p4-projects mailing list