libsec: fix memset() size in tlsConnectionFree(), remove #include <bio.h>
This commit is contained in:
parent
7f2599254a
commit
0cad8a59ed
1 changed files with 1 additions and 2 deletions
|
@ -1,6 +1,5 @@
|
||||||
#include <u.h>
|
#include <u.h>
|
||||||
#include <libc.h>
|
#include <libc.h>
|
||||||
#include <bio.h>
|
|
||||||
#include <auth.h>
|
#include <auth.h>
|
||||||
#include <mp.h>
|
#include <mp.h>
|
||||||
#include <libsec.h>
|
#include <libsec.h>
|
||||||
|
@ -2203,7 +2202,7 @@ tlsConnectionFree(TlsConnection *c)
|
||||||
tlsSecClose(c->sec);
|
tlsSecClose(c->sec);
|
||||||
freebytes(c->sid);
|
freebytes(c->sid);
|
||||||
freebytes(c->cert);
|
freebytes(c->cert);
|
||||||
memset(c, 0, sizeof(c));
|
memset(c, 0, sizeof(*c));
|
||||||
free(c);
|
free(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue