[Swan-dev] Preference on label kind

2021-03-26 Thread Paul Wouters
Sent from my iPhone Begin forwarded message: >Perhaps this is a mistake: before 8d1f8aec2ca811954811337008b4aee1a8900286 >st->st_acquired_sec_label had priority over st->st_seen_sec_label. >This was reversed by 8d1f8aec2ca811954811337008b4aee1a8900286. >I don't know if this

[Swan-dev] replacing a loop in unbound_resolve() with memcpy?

2021-03-26 Thread D. Hugh Redelmeier
Code: for (unsigned b = 0; b < afi->ip_size; b++) { bytes.byte[b] = result->data[0][b]; } Could this loop not be replaced by a memcpy? memcpy(bytes.byte, result->data[0], afi->ip_size); Is there some reason that this is a bad idea?