1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
From 8a15551ea40918e09f78ef480de938c10c830231 Mon Sep 17 00:00:00 2001
From: vanhauser-thc <vh@thc.org>
Date: Mon, 25 Aug 2025 09:41:25 +0200
Subject: [PATCH] gcc-15 fixes
---
Makefile.am | 2 +-
hydra-mod.c | 3 ++-
hydra-smb.c | 2 +-
3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/hydra-mod.c b/hydra-mod.c
index c988c1d0..a5cb08af 100644
--- a/hydra-mod.c
+++ b/hydra-mod.c
@@ -60,7 +60,8 @@ RSA *rsa = NULL;
int32_t my_select(int32_t fd, fd_set *fdread, fd_set *fdwrite, fd_set *fdex, long sec, long usec);
/* ----------------- alarming functions ---------------- */
-void alarming() {
+void alarming(int signal) {
+ (signal);
fail++;
alarm_went_off++;
diff --git a/hydra-smb.c b/hydra-smb.c
index 0db54dab..3bd77d35 100644
--- a/hydra-smb.c
+++ b/hydra-smb.c
@@ -1207,7 +1207,7 @@ unsigned long SMBSessionSetup(int32_t s, char *szLogin, char *szPassword, char *
hydra_send(s, (char *)buf, iOffset + iByteCount, 0);
nReceiveBufferSize = hydra_recv(s, bufReceive, sizeof(bufReceive));
- if (/*(bufReceive == NULL) ||*/ (nReceiveBufferSize == 0))
+ if (/*bufReceive == NULL ||*/ nReceiveBufferSize == 0)
return -1;
/* 41 - Action (Guest/Non-Guest Account) */
|