aboutsummaryrefslogtreecommitdiffstats
path: root/main/iscsitarget-grsec/iscsitarget-2.6.36.patch
blob: 43feb8997519c9fcea65f6f70466ab8550b6c1f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- iscsitarget-1.4.20.2/kernel/conn.c
+++ iscsitarget-1.4.20.2.mod/kernel/conn.c
@@ -44,7 +44,7 @@
 		switch (sk->sk_family) {
 		case AF_INET:
 			snprintf(buf, sizeof(buf),
-				 "%u.%u.%u.%u", NIPQUAD(inet_sk(sk)->inet_daddr));
+				 "%pI4",inet_sk(sk)->inet_daddr);
 			break;
 		case AF_INET6:
 			snprintf(buf, sizeof(buf), "[%pI6]",