diff options
author | Alex Dupre <ale@FreeBSD.org> | 2013-07-05 13:21:07 +0000 |
---|---|---|
committer | Alex Dupre <ale@FreeBSD.org> | 2013-07-05 13:21:07 +0000 |
commit | 5c9e41ea319c2eb77909023b7c362c533475be56 (patch) | |
tree | eb31cf8b1d8503e88da879b4202c84a2d73876f3 /security/openct/files/patch-ctapi.c | |
parent | Add a mechanism to allow USES to define code to be loaded after post.mk (diff) |
Don't crash when backend cannot be signalled.
Update master sites.
PR: ports/180291
Submitted by: Marcin Cieslak <saper@saper.info>
Notes
Notes:
svn path=/head/; revision=322323
Diffstat (limited to 'security/openct/files/patch-ctapi.c')
-rw-r--r-- | security/openct/files/patch-ctapi.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/security/openct/files/patch-ctapi.c b/security/openct/files/patch-ctapi.c new file mode 100644 index 000000000000..02e7ef8e887d --- /dev/null +++ b/security/openct/files/patch-ctapi.c @@ -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; |