[Git][NTPsec/ntpsec][master] It would be nice to put the NULL guard on the right line.

Eric S. Raymond gitlab at mg.gitlab.com
Wed Sep 6 02:25:31 UTC 2017


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
0c34df95 by Eric S. Raymond at 2017-09-05T22:25:19-04:00
It would be nice to put the NULL guard on the right line.

- - - - -


1 changed file:

- ntpd/ntp_proto.c


Changes:

=====================================
ntpd/ntp_proto.c
=====================================
--- a/ntpd/ntp_proto.c
+++ b/ntpd/ntp_proto.c
@@ -862,9 +862,9 @@ receive(
 		break;
 	    case AM_PROCPKT:
 		handle_procpkt(rbufp, restrict_mask, pkt, peer, authenticated);
+		sys_processed++;
 		if (peer != NULL)	/* just to be on the safe side */
-		    sys_processed++;
-		peer->processed++;
+		    peer->processed++;
 		break;
 	    case AM_MANYCAST:
 		handle_manycast(rbufp, restrict_mask, pkt, peer, authenticated);



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/0c34df9535753ff03e05b4d7d059d836e8cb1c72

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/0c34df9535753ff03e05b4d7d059d836e8cb1c72
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170906/c67efe8f/attachment.html>


More information about the vc mailing list