]> git.99rst.org Git - git.git/commit
imap-send: move common code into function host_matches()
authorBeat Bolli <redacted>
Wed, 11 Mar 2026 22:10:27 +0000 (23:10 +0100)
committerJunio C Hamano <redacted>
Wed, 11 Mar 2026 22:25:15 +0000 (15:25 -0700)
commit6392a0b75d979ba8e23c85d57b85779aace25370
treeca3413af8554813920b33e00bca012af4e10676c
parent08fd302fc4b8eaf0bb32856231a5fb46430e3c7e
imap-send: move common code into function host_matches()

Move the ASN1_STRING access, the associated cast and the check for
embedded NUL bytes into host_matches() to simplify both callers.

Reformulate the NUL check using memchr() and add a comment to make it
more obvious what it is about.

Signed-off-by: Beat Bolli <redacted>
Signed-off-by: Junio C Hamano <redacted>
imap-send.c
git clone https://git.99rst.org/PROJECT