Go to file
Roberto Hueso Gómez 8b1beddbe4 #915: Fix file descriptor leak in og_socket_server_init() from exit path
Call close() to release the socket in the event of an error.

infer says:

sources/ogAdmServer.cpp:1244: error: RESOURCE_LEAK
  resource acquired by call to `socket()` at line 1236, column 6 is not released after line 1244, column 3.
  1242.   			 sizeof(on));
  1243.   	if (res < 0) {
  1244. > 		syslog(LOG_ERR, "cannot set broadcast socket\n");
  1245.   		return false;
  1246.   	}

Not a real problem since OS releases process resources if the server
cannot bind to the port, but just to be correct here.
2019-09-19 16:06:07 +02:00
sources #915: Fix file descriptor leak in og_socket_server_init() from exit path 2019-09-19 16:06:07 +02:00
tests #915: Return 400 status code in POST methods when no payload is attached 2019-09-19 16:06:03 +02:00
Makefile #915 add initial REST API for ogAdmServer 2019-05-27 13:02:37 +02:00
ogAdmServer.cfg #915 update installer to add APITOKEN= to ogAdmServer.cfg 2019-06-24 13:46:10 +02:00