diff options
-rw-r--r-- | net/batman-adv/icmp_socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/icmp_socket.c b/net/batman-adv/icmp_socket.c index ac3520e057c0..defd6929ceae 100644 --- a/net/batman-adv/icmp_socket.c +++ b/net/batman-adv/icmp_socket.c | |||
@@ -217,7 +217,7 @@ static ssize_t bat_socket_write(struct file *file, const char __user *buff, | |||
217 | 217 | ||
218 | if (icmp_packet->version != COMPAT_VERSION) { | 218 | if (icmp_packet->version != COMPAT_VERSION) { |
219 | icmp_packet->msg_type = PARAMETER_PROBLEM; | 219 | icmp_packet->msg_type = PARAMETER_PROBLEM; |
220 | icmp_packet->ttl = COMPAT_VERSION; | 220 | icmp_packet->version = COMPAT_VERSION; |
221 | bat_socket_add_packet(socket_client, icmp_packet, packet_len); | 221 | bat_socket_add_packet(socket_client, icmp_packet, packet_len); |
222 | goto free_skb; | 222 | goto free_skb; |
223 | } | 223 | } |