return SET_ERROR(conn, LLDPCTL_ERR_SERIALIZATION);
/* rc == 0 */
conn->state = CONN_STATE_IDLE;
- if (conn->state_data)
- free(conn->state_data);
+ free(conn->state_data);
conn->state_data = NULL;
return 0;
} else
#define CONN_STATE_SET_CONFIG_SEND 10
#define CONN_STATE_SET_CONFIG_RECV 11
int state; /* Current state */
- const char *state_data; /* Data attached to the state. It is used to
+ char *state_data; /* Data attached to the state. It is used to
* check that we are using the same data as a
* previous call until the state machine goes to
* CONN_STATE_IDLE. */