Fix typo in memset call --- ./libteredo/peerlist.c +++ ./libteredo/peerlist.c @@ -288,7 +288,7 @@ teredo_peerlist *teredo_list_create (unsigned max, unsigned expiration) if (l == NULL) return NULL; - memset (l, 0, sizeof (l)); + memset (l, 0, sizeof (*l)); pthread_mutex_init (&l->lock, NULL); l->recent = l->old = NULL; l->left = max;