]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: fix comment on sshbuf_froms() - it *returns* an error
authordjm@openbsd.org <djm@openbsd.org>
Tue, 2 Sep 2025 09:41:23 +0000 (09:41 +0000)
committerDamien Miller <djm@mindrot.org>
Tue, 2 Sep 2025 09:41:59 +0000 (19:41 +1000)
code, the allocated buffer is passed via argument

OpenBSD-Commit-ID: b2b0a76df71328f39c3e2ad941a4d87085d8335d

sshbuf.h

index f0cc4c5f8e38122574b1b39c6f8e697ab24cf703..0c82f120c4226a8277a5734d30c37a567b94eec5 100644 (file)
--- 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);