You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-commits@axis.apache.org by bi...@apache.org on 2020/08/30 22:10:52 UTC

[axis-axis2-c-core] branch master updated: Fix possible null dereference in mtom caching sample

This is an automated email from the ASF dual-hosted git repository.

billblough pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/axis-axis2-c-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 41216a4  Fix possible null dereference in mtom caching sample
41216a4 is described below

commit 41216a499db288b0d3e749d643a024cb784823cd
Author: William Blough <de...@blough.us>
AuthorDate: Sun Aug 30 18:08:28 2020 -0400

    Fix possible null dereference in mtom caching sample
---
 samples/mtom_caching_callback/mtom_caching_callback.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/samples/mtom_caching_callback/mtom_caching_callback.c b/samples/mtom_caching_callback/mtom_caching_callback.c
index 2a4ff01..411aeaf 100644
--- a/samples/mtom_caching_callback/mtom_caching_callback.c
+++ b/samples/mtom_caching_callback/mtom_caching_callback.c
@@ -78,7 +78,7 @@ caching_callback_init_handler(axiom_mtom_caching_callback_t *caching_callback,
     }
 
     #if !defined(WIN32)
-    {
+    if (file_name) {
         int ret = 0;
         axis2_char_t permission_str[256];
         sprintf(permission_str, "chmod 777 %s", file_name);