As reported by on bugs@[1].  I had a longer diff but got no reply so
let's try to get this in first.

ok?

[1] http://marc.info/?l=openbsd-bugs&m=138513728419554&w=2

Index: if_spppsubr.c
===================================================================
RCS file: /cvs/src/sys/net/if_spppsubr.c,v
retrieving revision 1.113
diff -u -p -r1.113 if_spppsubr.c
--- if_spppsubr.c       20 Nov 2013 08:21:33 -0000      1.113
+++ if_spppsubr.c       11 Dec 2013 16:46:05 -0000
@@ -4488,10 +4488,12 @@ sppp_keepalive(void *dummy)
                        sppp_cisco_send (sp, CISCO_KEEPALIVE_REQ, ++sp->pp_seq,
                                sp->pp_rseq);
                else if (sp->pp_phase >= PHASE_AUTHENTICATE) {
-                       unsigned long nmagic = htonl (sp->lcp.magic);
+                       u_int32_t nmagic;
+
+                       nmagic = htonl(sp->lcp.magic);
                        sp->lcp.echoid = ++sp->pp_seq;
-                       sppp_cp_send (sp, PPP_LCP, ECHO_REQ,
-                               sp->lcp.echoid, 4, &nmagic);
+                       sppp_cp_send (sp, PPP_LCP, ECHO_REQ, sp->lcp.echoid,
+                           4, &nmagic);
                }
        }
        splx(s);

Reply via email to