Skip to content

Commit 5174a80

Browse files
pizhenweimatttbe
andauthored
Update src/anet.c
Apply Matthieu's suggestion Co-authored-by: Matthieu Baerts <[email protected]> Signed-off-by: zhenwei pi <[email protected]>
1 parent bb389a8 commit 5174a80

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/anet.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -583,12 +583,11 @@ static int anetTcpGetProtocol(char *err, int ai_protocol, int mptcp) {
583583
#ifdef IPPROTO_MPTCP
584584
UNUSED(err);
585585
return IPPROTO_MPTCP;
586-
}
587586
#else
588587
anetSetError(err, "MPTCP is not supported on this platform");
589588
return ANET_ERR;
590-
}
591589
#endif
590+
}
592591
return ai_protocol;
593592
}
594593

0 commit comments

Comments
 (0)