]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/env.c: treat out of memory condition as error
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 31 Mar 2024 10:14:04 +0000 (12:14 +0200)
committerAlejandro Colomar <alx@kernel.org>
Thu, 4 Apr 2024 18:12:03 +0000 (20:12 +0200)
commit5f5b21fd5cbf9ef3d19d3a5f1eb24bdc301bbbd7
tree3e31467e0d87ef6a941670fac8ef2bb77313534c
parentf7fe4c59781fde33e112be2cfdec44b84fda6497
lib/env.c: treat out of memory condition as error

If not enough memory is available for more environment variables, treat
it exactly like not enough memory for new environment variable content.

Reviewed-by: Alejandro Colomar <alx@kernel.org>
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
lib/env.c