summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr/src/lib/brand/lx/librtld_db/common/lx_librtld_db.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/src/lib/brand/lx/librtld_db/common/lx_librtld_db.c b/usr/src/lib/brand/lx/librtld_db/common/lx_librtld_db.c
index 86163df25e..49be6a9a03 100644
--- a/usr/src/lib/brand/lx/librtld_db/common/lx_librtld_db.c
+++ b/usr/src/lib/brand/lx/librtld_db/common/lx_librtld_db.c
@@ -205,8 +205,10 @@ lx_ldb_get_dyns32(rd_helper_data_t rhd,
* success and pass back the unmolested dynamic elements that
* we've already obtained.
*/
- *dynpp = dynp;
- *dynpp_sz = dynp_sz;
+ if(dynpp != NULL)
+ *dynpp = dynp;
+ if(dynpp_sz != NULL)
+ *dynpp_sz = dynp_sz;
ndyns = dynp_sz / sizeof (Elf32_Dyn);
/* If this isn't a dynamic object, there's nothing left todo */