[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-ha-dev
Subject: Re: [Linux-ha-dev] patch for wti_nps plugin
From: Alan Robertson <alanr () unix ! sh>
Date: 2006-01-12 3:23:46
Message-ID: 43C5CBC2.2040200 () unix ! sh
[Download RAW message or body]
Nate Reed wrote:
> We found a bug in the wti_nps plugin that occurs when the hostname in the
> request is longer than 16 characters. A patch is attached.
>
> Nate Reed
> Awarix, Inc.
>
>
> ------------------------------------------------------------------------
>
> --- linux-ha/lib/plugins/stonith/wti_nps.c.orig 2006-01-11 17:36:30.042618100 -0600
> +++ linux-ha/lib/plugins/stonith/wti_nps.c 2006-01-11 17:36:04.044856334 -0600
> @@ -428,7 +428,7 @@
> break;
> }
> }
> - if (strcasecmp(name, sockname) == 0) {
> + if (strncasecmp(name, sockname, 16) == 0) {
> ret = sockno;
> snprintf(buf, sizeof(buf), "%d ", sockno);
> strncat(*outlets, buf, left);
OK.
I committed your patch to CVS(HEAD).
Thanks!
--
Alan Robertson <alanr@unix.sh>
"Openness is the foundation and preservative of friendship... Let me
claim from you at all times your undisguised opinions." - William
Wilberforce
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic