2de67b2eab
git-svn-id: svn://svn.openwrt.org/openwrt/packages@13966 3c298f89-4303-0410-b956-a3cf2f4a3e73
21 lines
590 B
Diff
21 lines
590 B
Diff
This patch aligns the structure describing the RSA signature
|
|
option to 8 bytes. Before that, send was padding with N bytes
|
|
(4 on 32-bits architectures) using a cast in sendd/proto_sig.c :
|
|
|
|
so = (struct snd_opt_sig *)(nd_so);
|
|
|
|
which would align to the number of bytes representing a pointer
|
|
on your architecture.
|
|
|
|
--- a/sendd/snd_proto.h
|
|
+++ b/sendd/snd_proto.h
|
|
@@ -69,7 +69,7 @@ struct snd_opt_sig {
|
|
uint32_t reserved; /* opt hdr + reserved */
|
|
uint8_t keyhash[SND_KEYHASH_LEN];
|
|
uint8_t sig[0];
|
|
-};
|
|
+} __attribute__((aligned(8)));
|
|
|
|
struct snd_opt_timestamp {
|
|
uint8_t type;
|