summaryrefslogtreecommitdiff
path: root/src/sbearssl
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-08-22 10:56:01 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-08-22 10:56:01 +0000
commitf2206da976508c2ad81c3e0949ecd311a5a06709 (patch)
treeb1d8d6eb586da520c827f198ae06dfb647110779 /src/sbearssl
parent61459e9930995a491dcac51019d01813efc495ce (diff)
downloads6-networking-f2206da976508c2ad81c3e0949ecd311a5a06709.tar.xz
Optimize to xpathexec ; prepare for 2.3.0.2
Diffstat (limited to 'src/sbearssl')
-rw-r--r--src/sbearssl/sbearssl_cert_readbigpem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sbearssl/sbearssl_cert_readbigpem.c b/src/sbearssl/sbearssl_cert_readbigpem.c
index 9df5ebd..64ce139 100644
--- a/src/sbearssl/sbearssl_cert_readbigpem.c
+++ b/src/sbearssl/sbearssl_cert_readbigpem.c
@@ -25,8 +25,8 @@ int sbearssl_cert_readbigpem (char const *fn, genalloc *certs, stralloc *sa)
int r ;
if (fd < 0) return -1 ;
r = sbearssl_pem_decode_from_buffer(&b, &pems, sa) ;
- if (r) { fd_close(fd) ; return r ; }
fd_close(fd) ;
+ if (r) return r ;
p = genalloc_s(sbearssl_pemobject, &pems) ;
n = genalloc_len(sbearssl_pemobject, &pems) ;
for (; i < n ; i++)