svn commit: r322323 - in head/security/openct: . files

Alex Dupre ale at FreeBSD.org
Fri Jul 5 13:21:08 UTC 2013


Author: ale
Date: Fri Jul  5 13:21:07 2013
New Revision: 322323
URL: http://svnweb.freebsd.org/changeset/ports/322323

Log:
  Don't crash when backend cannot be signalled.
  Update master sites.
  
  PR:		ports/180291
  Submitted by:	Marcin Cieslak <saper at saper.info>

Added:
  head/security/openct/files/patch-ctapi.c   (contents, props changed)
Modified:
  head/security/openct/Makefile

Modified: head/security/openct/Makefile
==============================================================================
--- head/security/openct/Makefile	Fri Jul  5 13:16:57 2013	(r322322)
+++ head/security/openct/Makefile	Fri Jul  5 13:21:07 2013	(r322323)
@@ -3,9 +3,10 @@
 
 PORTNAME=	openct
 PORTVERSION=	0.6.20
+PORTREVISION=	1
 CATEGORIES=	security
-MASTER_SITES=	http://www.opensc-project.org/files/${PORTNAME}/ \
-		http://www.opensc-project.org/files/${PORTNAME}/testing/
+MASTER_SITES=	SF
+MASTER_SITE_SUBDIR=	opensc/${PORTNAME}
 
 MAINTAINER=	ale at FreeBSD.org
 COMMENT=	Middleware framework for smart card terminals

Added: head/security/openct/files/patch-ctapi.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/openct/files/patch-ctapi.c	Fri Jul  5 13:21:07 2013	(r322323)
@@ -0,0 +1,15 @@
+--- src/ctapi/ctapi.c	2006-04-25 23:58:06.000000000 +0200
++++ src/ctapi/ctapi.c	2013-07-05 10:08:41.000000000 +0200
+@@ -562,7 +562,11 @@
+ 	ct->next = cardTerminals;
+ 	cardTerminals = ct;
+ 	ct->cwd = &ct->mf;
+-	ct_reader_info(pn, &info);
++	if (ct_reader_info(pn, &info) < 0) { 
++		free(ct);
++		ct_error("ct_reader_info failed\n");
++		return ERR_INVALID;
++	}
+ 	ct->mf.id = 0x3f00;
+ 	ct->mf.gen = dir;
+ 	ct->mf.dir[0] = &ct->mf;


More information about the svn-ports-all mailing list