Silence some compiler warnings. Bug 3076
authorAndrew Aitchison <exim@aitchison.me.uk>
Fri, 8 Mar 2024 11:52:10 +0000 (11:52 +0000)
committerJeremy Harris <jgh146exb@wizmail.org>
Fri, 8 Mar 2024 11:55:16 +0000 (11:55 +0000)
src/src/routers/dnslookup.c
src/src/tls-gnu.c

index 33382671fdddea8636f8a02909ba6e6c2b3de7c0..80b12cba20eeb2f6311a54c0e69515e4137e0c67 100644 (file)
@@ -472,7 +472,7 @@ return rf_queue_add(addr, addr_local, addr_remote, rblock, pw)?
 }
 
 #endif /*!MACRO_PREDEF*/
-#endif /*ROUTER_DNSLOOKUP
+#endif /*ROUTER_DNSLOOKUP*/
 /* End of routers/dnslookup.c */
 /* vi: aw ai sw=2
 */
index 56ea93935ee7d204bdc3442f97dce58c51ade0b0..3e8ec6d847b8f0d88353231c795def00cdc29cc5 100644 (file)
@@ -1185,6 +1185,8 @@ tls_server_servercerts_cb(gnutls_session_t session, unsigned int htype,
 # ifdef notdef_crashes
                                /*XXX crashes */
 return gnutls_ext_raw_parse(NULL, tls_server_servercerts_ext, msg, 0);
+# else
+return GNUTLS_E_SUCCESS;
 # endif
 }
 #endif /*SUPPORT_GNUTLS_EXT_RAW_PARSE*/
@@ -1233,7 +1235,7 @@ switch (htype)
     return tls_server_ticket_cb(sess, htype, when, incoming, msg);
 # endif
   default:
-    return 0;
+    return GNUTLS_E_SUCCESS;
   }
 }
 #endif