summaryrefslogtreecommitdiff
path: root/src/sbearssl
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2018-07-21 11:29:25 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2018-07-21 11:29:25 +0000
commitef503140d2ce2138b414822e53e3686ba4b21162 (patch)
treeb1cc101d498cc7c17a59ae81fda49d5fb2ab26f0 /src/sbearssl
parent062b215d51e530a34d963e20ad9ff83a694123f9 (diff)
downloads6-networking-ef503140d2ce2138b414822e53e3686ba4b21162.tar.xz
Adapt to skalibs-2.7.0.0, prepare for 2.3.0.3
Diffstat (limited to 'src/sbearssl')
-rw-r--r--src/sbearssl/sbearssl_ta_readdir.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/sbearssl/sbearssl_ta_readdir.c b/src/sbearssl/sbearssl_ta_readdir.c
index 829d7a6..4093bcf 100644
--- a/src/sbearssl/sbearssl_ta_readdir.c
+++ b/src/sbearssl/sbearssl_ta_readdir.c
@@ -48,16 +48,12 @@ int sbearssl_ta_readdir (char const *dirfn, genalloc *taga, stralloc *tasa)
return 0 ;
fail:
- {
- int e = errno ;
- dir_close(dir) ;
- genalloc_free(sbearssl_cert, &certga) ;
- stralloc_free(&certsa) ;
- if (tagawasnull) genalloc_free(sbearssl_ta, taga) ;
- else genalloc_setlen(sbearssl_ta, taga, tagabase) ;
- if (tasawasnull) stralloc_free(tasa) ;
- else tasa->len = tasabase ;
- errno = e ;
- }
+ dir_close(dir) ;
+ genalloc_free(sbearssl_cert, &certga) ;
+ stralloc_free(&certsa) ;
+ if (tagawasnull) genalloc_free(sbearssl_ta, taga) ;
+ else genalloc_setlen(sbearssl_ta, taga, tagabase) ;
+ if (tasawasnull) stralloc_free(tasa) ;
+ else tasa->len = tasabase ;
return -1 ;
}