document additional stack push error code
authorMichael Baentsch <info@baentsch.ch>
Fri, 24 Dec 2021 07:23:00 +0000 (08:23 +0100)
committerTomas Mraz <tomas@openssl.org>
Tue, 28 Dec 2021 11:02:48 +0000 (12:02 +0100)
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17350)

(cherry picked from commit 0caf2813245f7141b982fcfd9bda402117da115c)

doc/man3/DEFINE_STACK_OF.pod

index ec9eda81c6f83c824603dda1314b08e85bf99de0..9cec9989249133c051bfd78aa236ca5095209b40 100644 (file)
@@ -266,6 +266,7 @@ on error.
 
 B<sk_I<TYPE>_insert>(), B<sk_I<TYPE>_push>() and B<sk_I<TYPE>_unshift>() return
 the total number of elements in the stack and 0 if an error occurred.
+B<sk_I<TYPE>_push>() further returns -1 if I<sk> is NULL.
 
 B<sk_I<TYPE>_set>() returns a pointer to the replacement element or NULL on
 error.