[Git][NTPsec/ntpsec][master] Fix bad interaction between memory allocation code and restrict mode field.
Eric S. Raymond
gitlab at mg.gitlab.com
Tue Aug 15 20:58:35 UTC 2017
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
196d94ab by Eric S. Raymond at 2017-08-15T16:58:23-04:00
Fix bad interaction between memory allocation code and restrict mode field.
The commit "Address GitLab issue #356: reverse function for restrict"
introduced a mode field in restriction nodes, but putting it first in
the structure caused it to be trashed by rather bizarre dynamic-allocation
code that was expecting a link field there.
- - - - -
1 changed file:
- include/ntp_config.h
Changes:
=====================================
include/ntp_config.h
=====================================
--- a/include/ntp_config.h
+++ b/include/ntp_config.h
@@ -84,8 +84,8 @@ typedef DECL_FIFO_ANCHOR(string_node) string_fifo;
typedef struct restrict_node_tag restrict_node;
struct restrict_node_tag {
- int mode; /* restrict or unrestrict? */
restrict_node * link;
+ int mode; /* restrict or unrestrict? */
address_node * addr;
address_node * mask;
int_fifo * flags;
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/196d94ab39df78b7dd0e471d5fd04be1dc7dace2
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/196d94ab39df78b7dd0e471d5fd04be1dc7dace2
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/20170815/3529f371/attachment.html>
More information about the vc
mailing list