Skip to content
Permalink
Browse files

libvpn: allow erasing a key/cert by providing an empty one

  • Loading branch information...
RMerl committed Mar 21, 2019
1 parent 2204f05 commit a45ceea61c542ead66f4808ca1cbe9dc6afe11bc
Showing with 1 addition and 1 deletion.
  1. +1 −1 release/src/router/libvpn/openvpn_config.c
@@ -269,7 +269,7 @@ int set_ovpn_key(ovpn_type_t type, int unit, ovpn_key_t key_type, char *buf, cha

if (path) {
return _set_crt_parsed(varname, path);
} else if (!buf) {
} else if ((!buf) || (!*buf)) {
unlink(filename);
return -1;
}

0 comments on commit a45ceea

Please sign in to comment.
You can’t perform that action at this time.