summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plug-nis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plug-nis.c b/src/plug-nis.c
index fc1afa4..dfc776f 100644
--- a/src/plug-nis.c
+++ b/src/plug-nis.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2008 Red Hat, Inc.
+ * Copyright 2008,2009 Red Hat, Inc.
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -321,7 +321,7 @@ plugin_state_init(Slapi_PBlock *pb, struct plugin_state **lstate)
}
/* Mark the socket as reusable and non-blocking. */
one = 1;
- if (setsockopt(sockfd, IPPROTO_IP, SO_REUSEADDR,
+ if (setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR,
&one, sizeof(one)) != 0) {
slapi_log_error(SLAPI_LOG_PLUGIN,
plugin_description.spd_id,