openbsd-ports/security/ADMfzap/patches/patch-fzap_c
jsyn e6530fb27e - fix MASTER_SITES
- sync license to reality
- rename patches
- sprinkle $OpenBSD$
- grammar fixes
- regen PLIST
- take over maintainership (this ok dugsong@)
2002-03-24 07:30:42 +00:00

41 lines
943 B
Plaintext

$OpenBSD: patch-fzap_c,v 1.1 2002/03/24 07:30:43 jsyn Exp $
--- fzap.c.orig Mon Feb 15 17:50:46 1999
+++ fzap.c Thu Apr 6 15:52:19 2000
@@ -40,6 +40,7 @@
void _init()
{
+#ifndef __OpenBSD__
void *handle;
handle = dlopen(LIB_PATH, 1);
@@ -52,14 +53,15 @@
fprintf(stderr, "\n[fzap] dlopen error!\n");
return;
}
+#endif
DBG("Warning: fzap loaded!");
}
CONNECT(__fd, __addr, __len)
{
- int result, truc, t2 = sizeof(int), loport = 0;
- struct sockaddr_in *my_addr;
+ int result = -1, truc, t2 = sizeof(int), loport = 0;
+ struct sockaddr_in *my_addr = NULL;
char *lprt;
void *handle;
@@ -146,8 +148,8 @@
BIND(__fd, __addr, __len)
{
- int result, truc, t2 = sizeof(int), loport = 0, oldport = 0;
- struct sockaddr_in *my_addr;
+ int result = 0, truc, t2 = sizeof(int), loport = 0, oldport = 0;
+ struct sockaddr_in *my_addr = NULL;
char *lprt;
void *handle;