]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Pass pipe fd array to pipe() not a pointer to the array
authorNick Porter <nick@portercomputing.co.uk>
Fri, 20 Feb 2026 08:32:50 +0000 (08:32 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Fri, 20 Feb 2026 08:40:38 +0000 (08:40 +0000)
src/lib/io/control.c

index 71cf13a2e50615e1ec34edba37388963c5458173..6ac6927b39471b6f028b76c9e275473966a5d495 100644 (file)
@@ -158,7 +158,7 @@ fr_control_t *fr_control_create(TALLOC_CTX *ctx, fr_event_list_t *el, fr_atomic_
        c->el = el;
        c->aq = aq;
 
-       if (pipe((int *) &c->pipe) < 0) {
+       if (pipe(c->pipe) < 0) {
                talloc_free(c);
                fr_strerror_printf("Failed opening pipe for control socket: %s", fr_syserror(errno));
                return NULL;