There were still two errors in the ifs in negotiate() that made 'make
check fail'. It works again now.
}
if (write(net, &magic, sizeof(magic)) < 0) {
err_nonfatal("Negotiation failed: %m");
}
if (write(net, &magic, sizeof(magic)) < 0) {
err_nonfatal("Negotiation failed: %m");
- if(phase & NEG_MODERN) {
+ if ((phase & NEG_MODERN) && (phase & NEG_INIT)) {
/* modern */
uint32_t reserved;
uint32_t opt;
/* modern */
uint32_t reserved;
uint32_t opt;