]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
we don't care if the call fails. CID #1504005
authorAlan T. DeKok <aland@freeradius.org>
Mon, 11 Apr 2022 22:47:04 +0000 (18:47 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 11 Apr 2022 22:47:04 +0000 (18:47 -0400)
if we're going to "error" anyways, no need for an extra "if"

src/lib/tls/session.c

index 38c8fcdfb772b313a843af0ed125a8a6569a02f2..b95eedc05fb87ad9ae0a572d5d7181ca9bb814f6 100644 (file)
@@ -1446,7 +1446,7 @@ DIAG_ON(used-but-marked-unused)
                ua = fr_tls_cache_pending_push(request, tls_session);
                switch (ua) {
                case UNLANG_ACTION_FAIL:
-                       if (unlang_function_clear(request) < 0) goto error;
+                       (void) unlang_function_clear(request);
                        goto error;
 
                case UNLANG_ACTION_PUSHED_CHILD: