Révision f0eb9c23
Ajouté par Ermal il y a presque 10 ans
patches/stable/10/CP_multi_instance_ipfw.diff | ||
---|---|---|
145 | 145 |
+ } |
146 | 146 |
+ op3 = alloca(len); |
147 | 147 |
+ /* Zero reserved fields */ |
148 |
+ memset(op3, 0, sizeof(ip_fw3_opheader));
|
|
148 |
+ memset(op3, 0, len);
|
|
149 | 149 |
+ op3->opcode = action; |
150 | 150 |
+ op3->ctxid = co.ctx; |
151 | 151 |
+ nlen = len; |
Formats disponibles : Unified diff
Zero out the memory here as well to avoid printing garbage.