diff options
author | tb <> | 2024-03-26 00:24:11 +0000 |
---|---|---|
committer | tb <> | 2024-03-26 00:24:11 +0000 |
commit | e45e73d8f6ec2c8e3433199494319c6045bc2ae5 (patch) | |
tree | 9206263e9d30ccb31454e0d0f5967eaedef6d7a9 /src/lib/libtls/tls.c | |
parent | 284a92902e7e2cadbab54fcc5e2de56838bfb3c6 (diff) | |
download | openbsd-e45e73d8f6ec2c8e3433199494319c6045bc2ae5.tar.gz openbsd-e45e73d8f6ec2c8e3433199494319c6045bc2ae5.tar.bz2 openbsd-e45e73d8f6ec2c8e3433199494319c6045bc2ae5.zip |
Clean up conf's module_init()
Immediately error out when no name or value is passed instead of hiding
this in a a combination of ternary operator and strdup error check.
Use calloc(). Unindent some stupid, don't pretend this function can return
anything but -1 and 1, turn the whole thing into single exit and call the
now existing imodule_free() instead of handrolling it.
ok jsing
Diffstat (limited to 'src/lib/libtls/tls.c')
0 files changed, 0 insertions, 0 deletions