From 6daba8105d69a0636474c3a401c263009669a41c Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 28 Sep 2010 07:40:34 +0000 Subject: 2010-09-28 Sebastian Huber * posix/src/psignal.c: Fixed NULL pointer access. --- cpukit/posix/src/psignal.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'cpukit/posix/src/psignal.c') diff --git a/cpukit/posix/src/psignal.c b/cpukit/posix/src/psignal.c index 61b4e39602..3040718874 100644 --- a/cpukit/posix/src/psignal.c +++ b/cpukit/posix/src/psignal.c @@ -117,12 +117,10 @@ void _POSIX_signals_Post_switch_extension( api = the_thread->API_Extensions[ THREAD_API_POSIX ]; /* - * api cannot be NULL or we would not have registered this API extension. + * api may be NULL in case of a thread close in progress */ - #if defined(RTEMS_DEBUG) - if ( !api ) - return; - #endif + if ( !api ) + return; /* * If we invoke any user code, there is the possibility that -- cgit v1.2.3