mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
corrected null pointer deferences
This commit is contained in:
@@ -377,7 +377,6 @@ unsigned i;
|
||||
DEL(config->dh_params_file);
|
||||
DEL(config->name);
|
||||
DEL(config->cert);
|
||||
DEL(config->key);
|
||||
DEL(config->pin_file);
|
||||
DEL(config->srk_pin_file);
|
||||
DEL(config->ca);
|
||||
@@ -400,6 +399,7 @@ unsigned i;
|
||||
DEL(config->network.routes[i]);
|
||||
for (i=0;i<config->key_size;i++)
|
||||
DEL(config->key[i]);
|
||||
DEL(config->key);
|
||||
for (i=0;i<config->cert_size;i++)
|
||||
DEL(config->cert[i]);
|
||||
DEL(config->network.routes);
|
||||
|
||||
@@ -65,6 +65,9 @@ const char* script;
|
||||
char real[64];
|
||||
char local[64];
|
||||
char remote[64];
|
||||
|
||||
if (proc->lease == NULL)
|
||||
exit(1);
|
||||
|
||||
if (getnameinfo((void*)&proc->remote_addr, proc->remote_addr_len, real, sizeof(real), NULL, 0, NI_NUMERICHOST) != 0)
|
||||
exit(1);
|
||||
|
||||
Reference in New Issue
Block a user