]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
sc can't be NULL
authorAlan T. DeKok <aland@freeradius.org>
Wed, 19 Sep 2018 14:15:10 +0000 (10:15 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 19 Sep 2018 14:48:49 +0000 (10:48 -0400)
src/lib/io/master.c
src/lib/io/master.h

index e225781d2624e0cbbd3dc5949f028fc0eea06bc3..3bfc540d4ef34004d23ad92f88bd9a9e30a541ad 100644 (file)
@@ -2645,11 +2645,6 @@ int fr_master_io_listen(TALLOC_CTX *ctx, fr_io_instance_t *io, fr_schedule_t *sc
                return -1;
        }
 
-       /*
-        *      The caller may need to add his own socket to the scheduler.
-        */
-       if (!sc) return 0;
-
        /*
         *      Add the socket to the scheduler, which might
         *      end up in a different thread.
index 63c3107a8cb4a937d7623aada63b62c062a4b598..fc45000d56511e3e17546444f9be27ec0dbf6baa 100644 (file)
@@ -124,7 +124,7 @@ extern fr_app_io_t fr_master_app_io;
 
 fr_trie_t *fr_master_io_network(TALLOC_CTX *ctx, int af, fr_ipaddr_t *allow, fr_ipaddr_t *deny);
 int fr_master_io_listen(TALLOC_CTX *ctx, fr_io_instance_t *io, fr_schedule_t *sc,
-                       size_t default_message_size, size_t num_messages);
+                       size_t default_message_size, size_t num_messages) CC_HINT(nonnull);
 
 #ifdef __cplusplus
 }