File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -1084,18 +1084,21 @@ impl<'a> Interface<'a> {
10841084 match device. transmit ( ) . ok_or ( Error :: Exhausted ) {
10851085 Ok ( _t) => {
10861086 #[ cfg( feature = "proto-sixlowpan-fragmentation" ) ]
1087- if let Err ( _e) = inner. dispatch_ip ( _t, response, Some ( _out_packets) ) {
1088- net_debug ! ( "failed to dispatch IP: {}" , _e) ;
1087+ if let Err ( e) = inner. dispatch_ip ( _t, response, Some ( _out_packets) ) {
1088+ net_debug ! ( "failed to dispatch IP: {}" , e) ;
1089+ return Err ( e) ;
10891090 }
10901091
10911092 #[ cfg( not( feature = "proto-sixlowpan-fragmentation" ) ) ]
1092- if let Err ( _e) = inner. dispatch_ip ( _t, response, None ) {
1093- net_debug ! ( "failed to dispatch IP: {}" , _e) ;
1093+ if let Err ( e) = inner. dispatch_ip ( _t, response, None ) {
1094+ net_debug ! ( "failed to dispatch IP: {}" , e) ;
1095+ return Err ( e) ;
10941096 }
10951097 emitted_any = true ;
10961098 }
10971099 Err ( e) => {
10981100 net_debug ! ( "failed to transmit IP: {}" , e) ;
1101+ return Err ( e) ;
10991102 }
11001103 }
11011104
You can’t perform that action at this time.
0 commit comments