A small memory footprint AMQP implimentation

Dependents:   iothub_client_sample_amqp remote_monitoring simplesample_amqp

Revision:
12:b30dacf113f2
Parent:
0:6ae2f7bca550
Child:
17:923575db8b2d
diff -r b9de84324501 -r b30dacf113f2 message.c
--- a/message.c	Thu Sep 22 18:16:30 2016 -0700
+++ b/message.c	Thu Oct 20 17:07:44 2016 -0700
@@ -715,8 +715,8 @@
 
 	MESSAGE_INSTANCE* message_instance = (MESSAGE_INSTANCE*)message;
 	if ((message == NULL) ||
-		(binary_data.bytes == NULL) ||
-		(binary_data.length == 0))
+		(binary_data.bytes == NULL) &&
+		(binary_data.length != 0))
 	{
 		result = __LINE__;
 	}