Révision e988ebbe
Ajouté par Ermal il y a presque 10 ans
patches/stable/10/CP_multi_instance_ipfw.diff | ||
---|---|---|
130 | 130 |
+ len = sizeof(ip_fw3_opheader) + strlen(ifname) + 1; |
131 | 131 |
+ op3 = alloca(len); |
132 | 132 |
+ /* Zero reserved fields */ |
133 |
+ memset(op3, 0, sizeof(ip_fw3_opheader)); |
|
133 |
+ memset(op3, 0, sizeof(ip_fw3_opheader) + strlen(ifname) + 1);
|
|
134 | 134 |
+ memcpy((op3 + 1), ifname, strlen(ifname)); |
135 | 135 |
+ op3->opcode = action; |
136 | 136 |
+ op3->ctxid = co.ctx; |
Formats disponibles : Unified diff
Zero out memory to avoid issues mostly seen on i386