diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-03-13 15:56:02 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-03-13 15:56:02 +0000 |
commit | e78694173c904b7a03d3dab8cf686a4d8f9380d4 (patch) | |
tree | fb1500462fc7ed1a14f2d68e651a3fbc2e421fb8 | |
parent | fc8b6150860d0f55cd52c3534444315c9c46ea12 (diff) | |
download | perl-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.xs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |