Skip to content

Commit e3dc55a

Browse files
committed
libjob: return on error in unwrap_string()
Problem: if the Flux security context cannot be allocated, unwrap_string() falls through to flux_security_configure() instead of returning. Add missing return.
1 parent ae12fac commit e3dc55a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/common/libjob/unwrap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ char *unwrap_string (const char *s,
8080
errprintf (errp,
8181
"failed to create security context: %s",
8282
strerror (errno));
83+
return NULL;
8384
}
8485
if (flux_security_configure (sec, NULL) < 0) {
8586
errprintf (errp,

0 commit comments

Comments
 (0)