mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-07 05:05:12 +02:00
xt_SYSRQ: fix compile error when crypto is turned off
This commit is contained in:
@@ -4,6 +4,7 @@ HEAD
|
||||
Fixes:
|
||||
- compat_xtables: fixed mistranslation of checkentry return values
|
||||
(affected kernels < 2.6.23)
|
||||
- xt_SYSRQ: fix compile error when crypto is turned off
|
||||
|
||||
|
||||
v1.41 (2012-01-04)
|
||||
|
@@ -225,8 +225,10 @@ sysrq_tg4(struct sk_buff **pskb, const struct xt_action_param *par)
|
||||
": " NIPQUAD_FMT ":%u -> :%u len=%u\n",
|
||||
NIPQUAD(iph->saddr), htons(udph->source),
|
||||
htons(udph->dest), len);
|
||||
#ifdef WITH_CRYPTO
|
||||
sprintf(sysrq_digest_password, NIPQUAD_FMT ",%s",
|
||||
NIPQUAD(iph->daddr), sysrq_password);
|
||||
#endif
|
||||
return sysrq_tg((void *)udph + sizeof(struct udphdr), len);
|
||||
}
|
||||
|
||||
@@ -258,8 +260,10 @@ sysrq_tg6(struct sk_buff **pskb, const struct xt_action_param *par)
|
||||
": " NIP6_FMT ":%hu -> :%hu len=%u\n",
|
||||
NIP6(iph->saddr), ntohs(udph->source),
|
||||
ntohs(udph->dest), len);
|
||||
#ifdef WITH_CRYPTO
|
||||
sprintf(sysrq_digest_password, NIP6_FMT ",%s",
|
||||
NIP6(iph->daddr), sysrq_password);
|
||||
#endif
|
||||
return sysrq_tg((void *)udph + sizeof(struct udphdr), len);
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user