Skip to content

Commit c8b915c

Browse files
committed
Merge branch 'fix_possible_memory_leak' of github.com:haraldreif/paho.mqtt.c into haraldreif-fix_possible_memory_leak
2 parents d9725e1 + 6b1fee4 commit c8b915c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/MQTTAsyncUtils.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2009, 2024 IBM Corp., Ian Craggs and others
2+
* Copyright (c) 2009, 2025 IBM Corp., Ian Craggs and others
33
*
44
* All rights reserved. This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License v2.0
@@ -2378,6 +2378,10 @@ thread_return_type WINAPI MQTTAsync_receiveThread(void* n)
23782378
m->c->connected = 0; /* don't send disconnect packet back */
23792379
nextOrClose(m, discrc, "Received disconnect");
23802380
}
2381+
else
2382+
{
2383+
Log(LOG_ERROR, -1, "An unexpected packet type %u has been received", pack->header.bits.type);
2384+
}
23812385
}
23822386
}
23832387
}

0 commit comments

Comments
 (0)