[openssh-commits] [openssh] 03/03: upstream: fix comment on sshbuf_froms() - it *returns* an error
git+noreply at mindrot.org
git+noreply at mindrot.org
Tue Sep 2 19:42:06 AEST 2025
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit 2f369d3fd0ff3715c2b32dff5cb35c0330272445
Author: djm at openbsd.org <djm at openbsd.org>
AuthorDate: Tue Sep 2 09:41:23 2025 +0000
upstream: fix comment on sshbuf_froms() - it *returns* an error
code, the allocated buffer is passed via argument
OpenBSD-Commit-ID: b2b0a76df71328f39c3e2ad941a4d87085d8335d
---
sshbuf.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/sshbuf.h b/sshbuf.h
index f0cc4c5f8..0c82f120c 100644
--- a/sshbuf.h
+++ b/sshbuf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshbuf.h,v 1.31 2025/07/24 05:44:55 djm Exp $ */
+/* $OpenBSD: sshbuf.h,v 1.32 2025/09/02 09:41:23 djm Exp $ */
/*
* Copyright (c) 2011 Damien Miller
*
@@ -61,7 +61,8 @@ struct sshbuf *sshbuf_fromb(struct sshbuf *buf);
* an existing buffer (the string is consumed in the process).
* The contents of "buf" must not change in the lifetime of the resultant
* buffer.
- * Returns pointer to buffer on success, or NULL on allocation failure.
+ * On success, a pointer to the newly allocated buffer is placed in *bufp.
+ * Returns 0 on success, or a negative SSH_ERR_* error code on failure.
*/
int sshbuf_froms(struct sshbuf *buf, struct sshbuf **bufp);
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list