A small memory footprint AMQP implimentation
Dependents: iothub_client_sample_amqp remote_monitoring simplesample_amqp
Diff: saslclientio.c
- Revision:
- 17:923575db8b2d
- Parent:
- 16:22a72cf8e416
- Child:
- 19:000ab4e6a2c1
diff -r 22a72cf8e416 -r 923575db8b2d saslclientio.c --- a/saslclientio.c Fri Jan 13 18:40:42 2017 -0800 +++ b/saslclientio.c Tue Jan 24 15:23:52 2017 -0800 @@ -2,9 +2,6 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include <stdlib.h> -#ifdef _CRTDBG_MAP_ALLOC -#include <crtdbg.h> -#endif #include <stddef.h> #include <stdio.h> #include <string.h> @@ -633,6 +630,10 @@ { switch (sasl_client_io_instance->sasl_client_negotiation_state) { + default: + handle_error(sasl_client_io_instance); + break; + case SASL_CLIENT_NEGOTIATION_NOT_STARTED: { SASL_MECHANISMS_HANDLE sasl_mechanisms_handle; @@ -1131,14 +1132,16 @@ /*this function will clone an option given by name and value*/ static void* saslclientio_CloneOption(const char* name, const void* value) { - (void)(name, value); + (void)name; + (void)value; return NULL; } /*this function destroys an option previously created*/ static void saslclientio_DestroyOption(const char* name, const void* value) { - (void)(name, value); + (void)name; + (void)value; } static OPTIONHANDLER_HANDLE saslclientio_retrieveoptions(CONCRETE_IO_HANDLE handle)