aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-03-13 15:56:02 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-03-13 15:56:02 +0000
commite78694173c904b7a03d3dab8cf686a4d8f9380d4 (patch)
treefb1500462fc7ed1a14f2d68e651a3fbc2e421fb8
parentfc8b6150860d0f55cd52c3534444315c9c46ea12 (diff)
downloadperl-URPM-e78694173c904b7a03d3dab8cf686a4d8f9380d4.tar
perl-URPM-e78694173c904b7a03d3dab8cf686a4d8f9380d4.tar.gz
perl-URPM-e78694173c904b7a03d3dab8cf686a4d8f9380d4.tar.bz2
perl-URPM-e78694173c904b7a03d3dab8cf686a4d8f9380d4.tar.xz
perl-URPM-e78694173c904b7a03d3dab8cf686a4d8f9380d4.zip
Protection when no data is passed to transaction callbacks
-rw-r--r--URPM.xs3
1 files changed, 3 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index dfe3c85..5429256 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1274,6 +1274,9 @@ static void *rpmRunTransactions_callback(const void *h,
char *callback_type = NULL;
char *callback_subtype = NULL;
+ if (!td)
+ return NULL;
+
switch (what) {
case RPMCALLBACK_INST_OPEN_FILE:
callback = td->callback_open;