use correct file pointer when checking the debian release file's sig
authorMichael Schroeder <mls@suse.de>
Fri, 23 Nov 2012 12:20:41 +0000 (13:20 +0100)
committerMichael Schroeder <mls@suse.de>
Fri, 23 Nov 2012 12:20:41 +0000 (13:20 +0100)
examples/solv.c

index d1857fa..cbe121c 100644 (file)
@@ -1976,7 +1976,7 @@ read_repos(Pool *pool, struct repoinfo *repoinfos, int nrepoinfos)
          if (cinfo->repo_gpgcheck)
            {
              filename = solv_dupjoin("dists/", cinfo->name, "/Release.gpg");
-             if (!downloadchecksig(cinfo, fp, filename, &sigpool))
+             if (!downloadchecksig(cinfo, fpr, filename, &sigpool))
                {
                  fclose(fpr);
                  solv_free((char *)filename);