isisd: return check (Coverity 1424370)

Signed-off-by: F. Aragon <paco@voltanet.io>
This commit is contained in:
F. Aragon 2018-06-28 16:31:37 +02:00
parent 62a9c814e1
commit aa979109f2
No known key found for this signature in database
GPG Key ID: FD112A8C7E6A5E4A

View File

@ -309,9 +309,9 @@ int isis_recv_pdu_p2p(struct isis_circuit *circuit, uint8_t *ssnpa)
addr_len = sizeof(s_addr); addr_len = sizeof(s_addr);
/* we can read directly to the stream */ /* we can read directly to the stream */
stream_recvfrom(circuit->rcv_stream, circuit->fd, (void)stream_recvfrom(
circuit->interface->mtu, 0, (struct sockaddr *)&s_addr, circuit->rcv_stream, circuit->fd, circuit->interface->mtu, 0,
(socklen_t *)&addr_len); (struct sockaddr *)&s_addr, (socklen_t *)&addr_len);
if (s_addr.sll_pkttype == PACKET_OUTGOING) { if (s_addr.sll_pkttype == PACKET_OUTGOING) {
/* Read the packet into discard buff */ /* Read the packet into discard buff */