Skip to content

Commit

Permalink
libvpn: allow erasing a key/cert by providing an empty one
Browse files Browse the repository at this point in the history
  • Loading branch information
RMerl committed Mar 21, 2019
1 parent 2204f05 commit a45ceea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion release/src/router/libvpn/openvpn_config.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit a45ceea

Please sign in to comment.