C is a morally incorrect programming language

This commit is contained in:
AJ Martinez 2023-03-24 20:00:44 -07:00 committed by James R
parent c46612329e
commit 694c094fac

View file

@ -279,7 +279,8 @@ shouldsign_t ShouldSignChallenge(uint8_t *message)
now = time(NULL);
memcpy(&then, message, sizeof(then));
memcpy(&claimedIP, message + sizeof(then), sizeof(claimedIP));
realIP = *I_GetNodeAddressInt(servernode);
CONS_Printf("servernode: %d\n", servernode);
realIP = I_GetNodeAddressInt(servernode);
if (abs(now - then) > 60*5)
return SIGN_BADTIME;