[Olsr-cvs] olsrd-current/lib/httpinfo/src olsrd_httpinfo.c, 1.55, 1.56

Andreas T�nnesen (spam-protected)
Sat Dec 17 18:22:28 CET 2005


Update of /cvsroot/olsrd/olsrd-current/lib/httpinfo/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26136/src

Modified Files:
	olsrd_httpinfo.c 
Log Message:
Patch from sven-ola

Index: olsrd_httpinfo.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/lib/httpinfo/src/olsrd_httpinfo.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -C2 -d -r1.55 -r1.56
*** olsrd_httpinfo.c	16 Dec 2005 15:16:42 -0000	1.55
--- olsrd_httpinfo.c	17 Dec 2005 17:22:26 -0000	1.56
***************
*** 473,479 ****
  	{
  #ifdef NETDIRECT
  	  netsprintf_error = 0;
  	  netsprintf_direct = 1;
- 	  c = build_http_header(HTTP_OK, OLSR_TRUE, size, req, MAX_HTTPREQ_SIZE);
  #endif
  	  y = 0;
--- 473,485 ----
  	{
  #ifdef NETDIRECT
+ 	  c = build_http_header(HTTP_OK, OLSR_TRUE, size, req, MAX_HTTPREQ_SIZE);
+ 	  r = send(client_sockets[curr_clients], req, c, 0);   
+ 	  if(r < 0)
+ 	    {
+ 	      olsr_printf(1, "(HTTPINFO) Failed sending data to client!\n");
+ 	      goto close_connection;
+ 	    }
  	  netsprintf_error = 0;
  	  netsprintf_direct = 1;
  #endif
  	  y = 0;





More information about the Olsr-cvs mailing list