31 lines
840 B
Diff
31 lines
840 B
Diff
From 966ad88931e413f1f6a29035af67fe06b7e7fdc3 Mon Sep 17 00:00:00 2001
|
|
From: Rainer Jung <rjung@apache.org>
|
|
Date: Sat, 25 Aug 2018 13:38:26 +0000
|
|
Subject: [PATCH 10/15] Remove dereference of null pointer.
|
|
|
|
Backport of r1836231 from trunk.
|
|
|
|
|
|
git-svn-id: https://svn.apache.org/repos/asf/apr/apr-util/branches/1.6.x@1839051 13f79535-47bb-0310-9956-ffa450edef68
|
|
---
|
|
hooks/apr_hooks.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/hooks/apr_hooks.c b/hooks/apr_hooks.c
|
|
index 4cedb3a5..af3dc958 100644
|
|
--- a/hooks/apr_hooks.c
|
|
+++ b/hooks/apr_hooks.c
|
|
@@ -180,7 +180,8 @@ static TSort *tsort(TSort *pData,int nItems)
|
|
break;
|
|
}
|
|
}
|
|
- pTail->pNext=NULL; /* unfudge the tail */
|
|
+ if(pTail)
|
|
+ pTail->pNext=NULL; /* unfudge the tail */
|
|
return pHead;
|
|
}
|
|
|
|
--
|
|
2.19.1
|
|
|