From 389c971430f0e7adc9e90b568b20fc09be2d1f3a Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Sun, 17 May 2015 07:05:46 +0100 Subject: [PATCH] Remove logically dead code. Coverity CID 1292477. --- lib/send_client_mosq.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/send_client_mosq.c b/lib/send_client_mosq.c index aef68536..a930bc99 100644 --- a/lib/send_client_mosq.c +++ b/lib/send_client_mosq.c @@ -99,9 +99,6 @@ int _mosquitto_send_connect(struct mosquitto *mosq, uint16_t keepalive, bool cle _mosquitto_write_string(packet, PROTOCOL_NAME_v31, strlen(PROTOCOL_NAME_v31)); }else if(version == MQTT_PROTOCOL_V311){ _mosquitto_write_string(packet, PROTOCOL_NAME_v311, strlen(PROTOCOL_NAME_v311)); - }else{ - _mosquitto_free(packet); - return MOSQ_ERR_INVAL; } #if defined(WITH_BROKER) && defined(WITH_BRIDGE) if(mosq->bridge && mosq->bridge->try_private && mosq->bridge->try_private_accepted){