devtls: remove static "already" flag in tlsinit(). this function is only run once.

This commit is contained in:
cinap_lenrek 2019-01-22 22:08:07 +01:00
parent 26d36c3ae2
commit 058951bb80

View file

@ -1793,12 +1793,8 @@ tlsinit(void)
struct Hashalg *h;
int n;
char *cp;
static int already;
if(!already){
fmtinstall('H', encodefmt);
already = 1;
}
fmtinstall('H', encodefmt);
tlsdevs = smalloc(sizeof(TlsRec*) * maxtlsdevs);
trnames = smalloc((sizeof *trnames) * maxtlsdevs);