jcs's openbsd hax
openbsd

fix sshbuf_dtourlb64() to not choke on empty buffers; previously it incorrectly returned an error in this situation; ok deraadt

djm cc032111 9a7f6f0d

+4 -1
+4 -1
usr.bin/ssh/sshbuf-misc.c
··· 1 - /* $OpenBSD: sshbuf-misc.c,v 1.21 2025/07/24 05:44:55 djm Exp $ */ 1 + /* $OpenBSD: sshbuf-misc.c,v 1.22 2025/09/04 00:32:31 djm Exp $ */ 2 2 /* 3 3 * Copyright (c) 2011 Damien Miller 4 4 * ··· 207 207 u_char *p; 208 208 struct sshbuf *b = NULL; 209 209 size_t i, l; 210 + 211 + if (sshbuf_len(d) == 0) 212 + return 0; 210 213 211 214 if ((b = sshbuf_new()) == NULL) 212 215 return SSH_ERR_ALLOC_FAIL;