Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37867935
en ru br
ALT Linux repos
S:1.2.6-alt3.gite5f565

Group :: System/Servers
RPM: miredo

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: miredo-1.2.6-alt-fix_memset_typo.patch
Download


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;
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin