diff options
author | tb <> | 2025-05-31 08:23:46 +0000 |
---|---|---|
committer | tb <> | 2025-05-31 08:23:46 +0000 |
commit | c6ac12da697e802f9ded4347fc8dcfc0760f0330 (patch) | |
tree | 3a716de9e4593d68281a86eb13af06e0e4478489 /src/lib/libssl/bio_ssl.c | |
parent | 2fb1ca21ad4a3bebfe3187bb4e4e7d681ce52c6d (diff) | |
download | openbsd-c6ac12da697e802f9ded4347fc8dcfc0760f0330.tar.gz openbsd-c6ac12da697e802f9ded4347fc8dcfc0760f0330.tar.bz2 openbsd-c6ac12da697e802f9ded4347fc8dcfc0760f0330.zip |
test.c: avoid NULL-dereference
test_init() calls test_new(NULL, NULL), which leads to a segfault.
llvm 16 optimizes this away with -O2, however gcc 4.2.1 on sparc64
doesn't. Fix this by only inheriting the out FILE from the parent
if the latter is non-NULL.
Diffstat (limited to 'src/lib/libssl/bio_ssl.c')
0 files changed, 0 insertions, 0 deletions