[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha7-1701-gac65ae9

Volker Lendecke vlendec at samba.org
Tue May 19 21:51:59 GMT 2009


The branch, master has been updated
       via  ac65ae9b1d0bba2420847dae48f5b07ed072b030 (commit)
      from  f8da7f5d744a87b3b7504ec4c509f52c0b4cbe44 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit ac65ae9b1d0bba2420847dae48f5b07ed072b030
Author: Volker Lendecke <vl at samba.org>
Date:   Tue May 19 23:48:41 2009 +0200

    Set errno=ENOMEM if tevent_add_fd fails
    
    tevent_add_fd does not properly set that. At least in epoll and select this is
    the only error condition.
    
    Metze, please check!

-----------------------------------------------------------------------

Summary of changes:
 lib/tsocket/tsocket_bsd.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/lib/tsocket/tsocket_bsd.c b/lib/tsocket/tsocket_bsd.c
index 054bb3d..8f5f009 100644
--- a/lib/tsocket/tsocket_bsd.c
+++ b/lib/tsocket/tsocket_bsd.c
@@ -618,6 +618,7 @@ static int tdgram_bsd_set_readable_handler(struct tdgram_bsd *bsds,
 					  tdgram_bsd_fde_handler,
 					  bsds);
 		if (!bsds->fde) {
+			errno = ENOMEM;
 			return -1;
 		}
 
@@ -669,6 +670,7 @@ static int tdgram_bsd_set_writeable_handler(struct tdgram_bsd *bsds,
 					  tdgram_bsd_fde_handler,
 					  bsds);
 		if (!bsds->fde) {
+			errno = ENOMEM;
 			return -1;
 		}
 
@@ -1329,6 +1331,7 @@ static int tstream_bsd_set_readable_handler(struct tstream_bsd *bsds,
 					  tstream_bsd_fde_handler,
 					  bsds);
 		if (!bsds->fde) {
+			errno = ENOMEM;
 			return -1;
 		}
 
@@ -1380,6 +1383,7 @@ static int tstream_bsd_set_writeable_handler(struct tstream_bsd *bsds,
 					  tstream_bsd_fde_handler,
 					  bsds);
 		if (!bsds->fde) {
+			errno = ENOMEM;
 			return -1;
 		}
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list