patch-2.4.0-test3 linux/net/ax25/af_ax25.c

Next file: linux/net/ax25/ax25_in.c
Previous file: linux/net/atm/svc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test2/linux/net/ax25/af_ax25.c linux/net/ax25/af_ax25.c
@@ -964,7 +964,7 @@
 			return NULL;
 		}
 
-		*ax25->digipeat = *osk->protinfo.ax25->digipeat;
+		memcpy(ax25->digipeat, osk->protinfo.ax25->digipeat, sizeof(ax25_digi));
 	}
 
 	sk->protinfo.ax25 = ax25;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)