patch-2.1.122 linux/net/ax25/af_ax25.c
Next file: linux/net/core/skbuff.c
Previous file: linux/net/Config.in
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Thu Sep 10 16:33:15 1998
- Orig file:
v2.1.121/linux/net/ax25/af_ax25.c
- Orig date:
Sat Sep 5 16:46:42 1998
diff -u --recursive --new-file v2.1.121/linux/net/ax25/af_ax25.c linux/net/ax25/af_ax25.c
@@ -1290,10 +1290,12 @@
fsa.fsa_ax25.sax25_call = sk->protinfo.ax25->dest_addr;
fsa.fsa_ax25.sax25_ndigis = 0;
- ndigi = sk->protinfo.ax25->digipeat->ndigi;
- fsa.fsa_ax25.sax25_ndigis = ndigi;
- for (i = 0; i < ndigi; i++)
- fsa.fsa_digipeater[i] = sk->protinfo.ax25->digipeat->calls[i];
+ if (sk->protinfo.ax25->digipeat != NULL) {
+ ndigi = sk->protinfo.ax25->digipeat->ndigi;
+ fsa.fsa_ax25.sax25_ndigis = ndigi;
+ for (i = 0; i < ndigi; i++)
+ fsa.fsa_digipeater[i] = sk->protinfo.ax25->digipeat->calls[i];
+ }
} else {
fsa.fsa_ax25.sax25_family = AF_AX25;
fsa.fsa_ax25.sax25_call = sk->protinfo.ax25->source_addr;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov