Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37747825
en ru br
ALT Linux repos
S:0.11.5-alt2

Group :: Communications
RPM: gnunet

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: gnunet-fix-pointer.patch
Download


diff --git a/GNUnet/src/applications/identity/identity.c b/GNUnet/src/applications/identity/identity.c
index 063c463..6d3cf65 100644
--- a/GNUnet/src/applications/identity/identity.c
+++ b/GNUnet/src/applications/identity/identity.c
@@ -423,7 +423,7 @@ getPeerIdentity (const GNUNET_RSA_PublicKey * pubKey,
                  GNUNET_PeerIdentity * result)
 {
   if (pubKey == NULL)
-    memset (&result, 0, sizeof (GNUNET_PeerIdentity));
+    memset (result, 0, sizeof (GNUNET_PeerIdentity));
   else
     GNUNET_hash (pubKey, sizeof (GNUNET_RSA_PublicKey), &result->hashPubKey);
 }
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin