diff options
author | Nalin Dahyabhai <nalin.dahyabhai@pobox.com> | 2009-05-14 14:51:22 -0400 |
---|---|---|
committer | Nalin Dahyabhai <nalin.dahyabhai@pobox.com> | 2009-05-14 14:51:22 -0400 |
commit | 3e812ec5be1f894e50b6fdbc8e265a37ace8a9d1 (patch) | |
tree | af01e234ad093b00fab2c25fe54e69337f535304 /src | |
parent | 2651bae459798883121722d42f7ac5729254bf5b (diff) | |
download | slapi-nis-3e812ec5be1f894e50b6fdbc8e265a37ace8a9d1.tar.gz slapi-nis-3e812ec5be1f894e50b6fdbc8e265a37ace8a9d1.tar.xz slapi-nis-3e812ec5be1f894e50b6fdbc8e265a37ace8a9d1.zip |
- try to set the reuse-address socket option at the right level (socket,
not IP) this time
Diffstat (limited to 'src')
-rw-r--r-- | src/plug-nis.c | 4 |
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, |