Skip to content

Commit

Permalink
Remove duplicate code.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed Jul 1, 2015
1 parent e0037b3 commit b877225
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/socks_mosq.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,13 +352,6 @@ int mosquitto__socks5_read(struct mosquitto *mosq)
_mosquitto_packet_cleanup(&mosq->in_packet);
return MOSQ_ERR_NOMEM;
}
payload = _mosquitto_realloc(mosq->in_packet.payload, mosq->in_packet.packet_length);
if(payload){
mosq->in_packet.payload = payload;
}else{
_mosquitto_packet_cleanup(&mosq->in_packet);
return MOSQ_ERR_NOMEM;
}
return MOSQ_ERR_SUCCESS;
}

Expand Down

0 comments on commit b877225

Please sign in to comment.