pcpserver.c: small code simplification

This commit is contained in:
Thomas Bernard 2013-12-13 17:15:51 +01:00
parent f774a54bac
commit e2a1c4d4c9
1 changed files with 1 additions and 4 deletions

View File

@ -1323,10 +1323,7 @@ int ProcessIncomingPCPPacket(int s, unsigned char *buff, int len,
createPCPResponse(buff, &pcp_msg_info);
if ((len&0x03)!=0) {
len = len+4-(len&0x03); /* round up resp. length to multiple of 4 */
}
len = (len + 3) & ~3; /* round up resp. length to multiple of 4 */
len = sendto(s, buff, len, 0,
(struct sockaddr *)senderaddr, sizeof(struct sockaddr_in));
if( len < 0 ) {