]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
const issues
authorAlan T. DeKok <aland@freeradius.org>
Mon, 15 Jan 2018 17:15:14 +0000 (12:15 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 15 Jan 2018 17:15:14 +0000 (12:15 -0500)
src/modules/proto_radius/proto_radius_udp.c

index cbe9328eafdc001dfdcb1f4959fed074322bf60a..b8364801b7a9c0e9e2cd4ece35077c6d895d73e9 100644 (file)
@@ -1402,9 +1402,10 @@ static ssize_t mod_write(void *instance, void *packet_ctx,
  */
 static int mod_close(void *instance)
 {
-       proto_radius_udp_t *inst = talloc_get_type_abort_const(instance, proto_radius_udp_t);
+       proto_radius_udp_t *inst = talloc_get_type_abort(instance, proto_radius_udp_t);
 
        close(inst->sockfd);
+       inst->sockfd = -1;
 
        /*
         *      If we're the child, then free the module instance, on