|
|
|
@ -103,7 +103,7 @@ int mqtt3_socket_accept(struct mosquitto_db *db, int listensock)
|
|
|
|
|
}
|
|
|
|
|
COMPAT_CLOSE(new_sock);
|
|
|
|
|
return -1;
|
|
|
|
|
}else{
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
new_context = mqtt3_context_init(new_sock);
|
|
|
|
|
if(!new_context){
|
|
|
|
@ -193,9 +193,6 @@ int mqtt3_socket_accept(struct mosquitto_db *db, int listensock)
|
|
|
|
|
// If we got here then the context's DB index is "i" regardless of how we got here
|
|
|
|
|
new_context->db_index = i;
|
|
|
|
|
|
|
|
|
|
#ifdef WITH_WRAP
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
return new_sock;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|