CVSROOT: /cvs Module name: src Changes by: clau...@cvs.openbsd.org 2025/08/01 07:46:06
Modified files: usr.sbin/rpki-client: cert.c extern.h http.c io.c main.c mft.c repo.c rrdp.c rsync.c tal.c Log message: Split io_read_str() in two. One version that requires a string (default) and one that allows optional strings (aka NULL pointers). Also split io_str_buffer() in two. To enforce that we don't pass a NULL pointer in a place where we don't expect a NULL pointer. On top of this just error out in io_read_buf() if the sz passed in is 0. Adjust all io_read_str() calls to follow this. This way it is obvious where we accept a NULL as a string pointer. OK tb@ job@