summaryrefslogtreecommitdiff
path: root/src/lib/libtls/tls_server.c
diff options
context:
space:
mode:
authorschwarze <>2025-05-27 12:40:37 +0000
committerschwarze <>2025-05-27 12:40:37 +0000
commitb1dd45ef5fd4c83b819456f207db22005aee5041 (patch)
treee10609633c9661306371ef9a8817c35487ce13b5 /src/lib/libtls/tls_server.c
parent68a52297dea2d50284c7a8a12b92d8f2c15421f3 (diff)
downloadopenbsd-b1dd45ef5fd4c83b819456f207db22005aee5041.tar.gz
openbsd-b1dd45ef5fd4c83b819456f207db22005aee5041.tar.bz2
openbsd-b1dd45ef5fd4c83b819456f207db22005aee5041.zip
Delete bad advice about abusing malloc_options = "X" as a production
feature to terminate the program when out of memory. Application code should always handle failure of library functions properly. So if you want your program to terminate, write something like | p = malloc(...); | if (p == NULL) | err(1, NULL); and don't abuse malloc_options. Direction suggested by otto@ after anton@ pointed out that this very old text still used an outdated data type for malloc_options and potentially failed to define its value at compile time. OK otto@
Diffstat (limited to 'src/lib/libtls/tls_server.c')
0 files changed, 0 insertions, 0 deletions