Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
slurm.32299
U_22-Set-size_valp-to-0-on-error-paths-for-cons...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File U_22-Set-size_valp-to-0-on-error-paths-for-consistency.patch of Package slurm.32299
From: Tim Wickberg <tim@schedmd.com> Date: Wed Nov 29 15:42:07 2023 -0700 Subject: [PATCH 22/28]Set *size_valp to 0 on error paths for consistency. Patch-mainline: Upstream Git-repo: https://github.com/SchedMD/slurm Git-commit: 382c9be2b828a196fd7b560af7c57f6c1d250530 References: bsc#1218046, bsc#1218050, bsc#1218051, bsc#1218053 Signed-off-by: Egbert Eich <eich@suse.de> --- src/common/pack.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/pack.c b/src/common/pack.c index c0f9fc2a4b..9f8a82cf9e 100644 --- a/src/common/pack.c +++ b/src/common/pack.c @@ -872,6 +872,7 @@ int unpackmem_ptr(char **valp, uint32_t * size_valp, Buf buffer) return SLURM_SUCCESS; unpack_error: + *size_valp = 0; return SLURM_ERROR; } @@ -943,6 +944,7 @@ int unpackmem_xmalloc(char **valp, uint32_t * size_valp, Buf buffer) return SLURM_SUCCESS; unpack_error: + *size_valp = 0; return SLURM_ERROR; } @@ -983,6 +985,7 @@ int unpackmem_malloc(char **valp, uint32_t * size_valp, Buf buffer) return SLURM_SUCCESS; unpack_error: + *size_valp = 0; return SLURM_ERROR; } @@ -1046,6 +1049,7 @@ int unpackstr_xmalloc_escaped(char **valp, uint32_t *size_valp, Buf buffer) return SLURM_SUCCESS; unpack_error: + *size_valp = 0; return SLURM_ERROR; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor