summaryrefslogtreecommitdiffstats
path: root/src/H5Ocache.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2013-11-22 20:59:07 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2013-11-22 20:59:07 (GMT)
commit200e48e08cb1d98c0d745252302eb11b4a4341eb (patch)
tree4cf646cce7c3d31fa2ddb002902d57f457a5b42e /src/H5Ocache.c
parent21cecf09fad67cf9ab3dc3c01c60d1edfe48e7bf (diff)
downloadhdf5-200e48e08cb1d98c0d745252302eb11b4a4341eb.zip
hdf5-200e48e08cb1d98c0d745252302eb11b4a4341eb.tar.gz
hdf5-200e48e08cb1d98c0d745252302eb11b4a4341eb.tar.bz2
[svn-r24463] Issue 8484 - Segfault during H5Fopen of corrupt file. I put a condition check to make sure a pointer isn't NULL.
Tested on jam - very simple change.
Diffstat (limited to 'src/H5Ocache.c')
-rw-r--r--src/H5Ocache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Ocache.c b/src/H5Ocache.c
index f09f693..847bf71 100644
--- a/src/H5Ocache.c
+++ b/src/H5Ocache.c
@@ -1442,7 +1442,7 @@ H5O_chunk_proxy_dest(H5O_chunk_proxy_t *chk_proxy)
HDassert(chk_proxy);
/* Decrement reference count of object header */
- if(H5O_dec_rc(chk_proxy->oh) < 0)
+ if(chk_proxy->oh && H5O_dec_rc(chk_proxy->oh) < 0)
HGOTO_ERROR(H5E_OHDR, H5E_CANTDEC, FAIL, "can't decrement reference count on object header")
/* Release the chunk proxy object */