diff options
| author | Beat Bolli <dev+git@drbeat.li> | 2026-03-11 23:10:27 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-03-11 15:25:15 -0700 |
| commit | 6392a0b75d979ba8e23c85d57b85779aace25370 (patch) | |
| tree | ca3413af8554813920b33e00bca012af4e10676c /commit.h | |
| parent | 08fd302fc4b8eaf0bb32856231a5fb46430e3c7e (diff) | |
| download | git-6392a0b75d979ba8e23c85d57b85779aace25370.tar.xz | |
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 <dev+git@drbeat.li>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
0 files changed, 0 insertions, 0 deletions
