ソースを参照

[SCTP]: sctp_sf_send_restart_abort() is endian-agnostic.

... so caller can use ->ipaddr instead of ->ipaddr_h

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Al Viro 18 年 前
コミット
7dd8a5821d
1 ファイル変更1 行追加1 行削除
  1. 1 1
      net/sctp/sm_statefuns.c

+ 1 - 1
net/sctp/sm_statefuns.c

@@ -1179,7 +1179,7 @@ static int sctp_sf_check_restart_addrs(const struct sctp_association *new_asoc,
 
 	/* If a new address was added, ABORT the sender. */
 	if (!found && new_addr) {
-		sctp_sf_send_restart_abort(&new_addr->ipaddr_h, init, commands);
+		sctp_sf_send_restart_abort(&new_addr->ipaddr, init, commands);
 	}
 
 	/* Return success if all addresses were found. */