File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -847,12 +847,13 @@ impl<'a> ControlMessage<'a> {
847847 }
848848 #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
849849 ControlMessage :: AlgSetIv ( iv) => {
850+ #[ allow( deprecated) ]
850851 let af_alg_iv = libc:: af_alg_iv {
851852 ivlen : iv. len ( ) as u32 ,
852853 iv : [ 0u8 ; 0 ] ,
853854 } ;
854855
855- let size = mem:: size_of :: < libc :: af_alg_iv > ( ) ;
856+ let size = mem:: size_of_val ( & af_alg_iv ) ;
856857
857858 unsafe {
858859 ptr:: copy_nonoverlapping (
@@ -915,7 +916,7 @@ impl<'a> ControlMessage<'a> {
915916 }
916917 #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
917918 ControlMessage :: AlgSetIv ( iv) => {
918- mem:: size_of :: < libc :: af_alg_iv > ( ) + iv. len ( )
919+ mem:: size_of_val ( & iv ) + iv. len ( )
919920 } ,
920921 #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
921922 ControlMessage :: AlgSetOp ( op) => {
You can’t perform that action at this time.
0 commit comments