28 lines
768 B
Diff
28 lines
768 B
Diff
|
|
From 14842a4a7b6c14a9713cce45b8a699bfb54775be Mon Sep 17 00:00:00 2001
|
||
|
|
From: Jan Synacek <jsynacek@redhat.com>
|
||
|
|
Date: Wed, 23 May 2012 13:43:07 +0200
|
||
|
|
Subject: [PATCH 07/16] service.c: avoid dereferencing NULL pointer
|
||
|
|
|
||
|
|
---
|
||
|
|
xinetd/service.c | 3 +++
|
||
|
|
1 file changed, 3 insertions(+)
|
||
|
|
|
||
|
|
diff --git a/xinetd/service.c b/xinetd/service.c
|
||
|
|
index 5e4d406..cd02857 100644
|
||
|
|
--- a/xinetd/service.c
|
||
|
|
+++ b/xinetd/service.c
|
||
|
|
@@ -984,7 +984,10 @@ void close_all_svc_descriptors(void)
|
||
|
|
/* Have to close all other descriptors here */
|
||
|
|
iter = psi_create( SERVICES( ps ) ) ;
|
||
|
|
if ( iter == NULL )
|
||
|
|
+ {
|
||
|
|
out_of_memory( "close_all_svc_descriptors" ) ;
|
||
|
|
+ exit( 1 );
|
||
|
|
+ }
|
||
|
|
|
||
|
|
for ( osp = SP( psi_start( iter ) ) ; osp ; osp = SP( psi_next( iter ) ) )
|
||
|
|
{
|
||
|
|
--
|
||
|
|
2.19.1
|
||
|
|
|