]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Should be signed
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 4 Nov 2021 19:08:14 +0000 (15:08 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 4 Nov 2021 19:08:14 +0000 (15:08 -0400)
src/lib/util/cap.c

index d93a789a1ca1234102302cc73246e82da3c43ba7..31ec1d3ee096a6f52e197ea8852db68c9264d7f6 100644 (file)
@@ -293,7 +293,7 @@ ssize_t fr_cap_set_to_str(TALLOC_CTX *ctx, char **out)
 {
        cap_t caps = NULL;
        char *tmp;
-       size_t len;
+       ssize_t slen;
 
        caps = cap_get_proc();
        if (unlikely(!caps)) {
@@ -310,6 +310,6 @@ ssize_t fr_cap_set_to_str(TALLOC_CTX *ctx, char **out)
        *out = talloc_bstrndup(ctx, tmp, len);
        free(tmp);
 
-       return len;
+       return slen;
 }
 #endif /* HAVE_CAPABILITY_H */