Revision: 14367
Author: adrian.chadd
Date: Thu Nov 12 23:56:19 2009
Log: Make sure the prefix_t is bzero()'ed for now.


http://code.google.com/p/lusca-cache/source/detail?r=14367

Modified:
  /branches/LUSCA_HEAD/libcore/radix.c

=======================================
--- /branches/LUSCA_HEAD/libcore/radix.c        Mon Jun  1 02:11:38 2009
+++ /branches/LUSCA_HEAD/libcore/radix.c        Thu Nov 12 23:56:19 2009
@@ -105,6 +105,7 @@
  int
  Init_Prefix(prefix_t *pfx, u_int family, void *dest, u_int bitlen)
  {
+       bzero(pfx, sizeof(*pfx));
        if (family == AF_INET6) {
                memcpy(&pfx->add.sin6, dest, 16);
                pfx->bitlen = (bitlen >= 0) ? bitlen : 128;

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"lusca-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/lusca-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to