cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: jbrassow@sourceware.org <jbrassow@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/ccs/lib libccs.c
Date: 21 Jan 2008 22:31:54 -0000	[thread overview]
Message-ID: <20080121223154.10859.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	jbrassow at sourceware.org	2008-01-21 22:31:54

Modified files:
	ccs/lib        : libccs.c 

Log message:
	- ccs library now checks for bad file descriptors as input

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/ccs/lib/libccs.c.diff?cvsroot=cluster&r1=1.14&r2=1.15

--- cluster/ccs/lib/libccs.c	2008/01/07 05:52:28	1.14
+++ cluster/ccs/lib/libccs.c	2008/01/21 22:31:42	1.15
@@ -409,6 +409,9 @@
 
   ENTER("ccs_disconnect");
 
+  if (desc < 0)
+	  return -EINVAL;
+
   if(!(buffer = malloc(512))){
     error = -ENOMEM;
     goto fail;
@@ -452,6 +455,9 @@
 
   ENTER("_ccs_get");
 
+  if (desc < 0)
+	  return -EINVAL;
+
   if(!(buffer = malloc(512))){
     error = -ENOMEM;
     goto fail;
@@ -535,6 +541,9 @@
 
   ENTER("ccs_get_state");
 
+  if (desc < 0)
+	  return -EINVAL;
+
   if(!(buffer = malloc(512))){
     error = -ENOMEM;
     goto fail;
@@ -594,6 +603,9 @@
 
   ENTER("ccs_set_state");
 
+  if (desc < 0)
+	  return -EINVAL;
+
   if(!(buffer = malloc(512))){
     error = -ENOMEM;
     goto fail;



             reply	other threads:[~2008-01-21 22:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-21 22:31 jbrassow [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-11-14 16:51 [Cluster-devel] cluster/ccs/lib libccs.c lhh
2007-10-26 19:18 rmccabe
2007-10-11  5:11 rmccabe
2007-10-11  5:10 rmccabe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080121223154.10859.qmail@sourceware.org \
    --to=jbrassow@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).