mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-12 01:26:48 +08:00
Fix invalid return value
This commit is contained in:
committed by
Nikos Mavrogiannopoulos
parent
019d7e8a04
commit
54259a5d4c
@@ -513,7 +513,7 @@ void close_tun(main_server_st * s, struct proc_st *proc)
|
||||
if (proc->tun_lease.name[0] != 0) {
|
||||
fd = socket(AF_INET, SOCK_DGRAM, 0);
|
||||
if (fd == -1)
|
||||
return -1;
|
||||
return;
|
||||
|
||||
memset(&ifr, 0, sizeof(struct ifreq));
|
||||
strlcpy(ifr.ifr_name, proc->tun_lease.name, IFNAMSIZ);
|
||||
|
||||
Reference in New Issue
Block a user