safe

Password protected secret keeper
git clone git://git.z3bra.org/safe.git
Log | Files | Refs | README | LICENSE

commit 65e4f6001d14f83bbbd27e6478b6711da3fb0009
parent 68736e81ed0205d8f2c49fbaf4ef8b6bd8de54b5
Author: Willy Goiffon <dev@z3bra.org>
Date:   Mon, 24 Jun 2019 16:46:40 +0200

Prevent segfault if socket path is unset

Diffstat:
safe.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/safe.c b/safe.c @@ -405,8 +405,12 @@ main(int argc, char *argv[]) } close(fd); - if (pflag) + if (pflag) { + if (!sockp) + return -1; + return pushkey(&s, sockp); + } secret = argv[0];