File: sockd_fail.c

package info (click to toggle)
socks4-server 4.3.beta2-13
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,512 kB
  • ctags: 1,778
  • sloc: ansic: 19,305; makefile: 404; sh: 52
file content (17 lines) | stat: -rw-r--r-- 303 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* sockd_fail */

#include <sys/types.h>
#include <syslog.h>
#include "socks.h"

void sockd_fail(str, in, ndst, log_msg)
char	*str;
int	in;
Socks_t	*ndst;
char *log_msg;
{
	syslog(LOG_LOW, "failed -- %s.  Error code: %s %m", log_msg, str);
	ndst->cmd = SOCKS_FAIL;
	socks_SendDst(in, ndst);
	exit(1);
}