[Forensics-changes] [yara] 74/135: Fix issues with parent() in Cuckoo module

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:27:34 UTC 2017


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag v3.1.0
in repository yara.

commit e33266df9bb3b86e7fd61e0ac87b949bc2400b6d
Author: Victor M. Alvarez <plusvic at gmail.com>
Date:   Thu Jul 24 13:10:51 2014 +0200

    Fix issues with parent() in Cuckoo module
---
 libyara/include/yara/modules.h | 2 +-
 libyara/modules/cuckoo.c       | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/libyara/include/yara/modules.h b/libyara/include/yara/modules.h
index cdda1d9..92ed41b 100644
--- a/libyara/include/yara/modules.h
+++ b/libyara/include/yara/modules.h
@@ -169,7 +169,7 @@ limitations under the License.
 
 
 #define module()        yr_object_get_root((YR_OBJECT*) __function_obj)
-#define parent()        (__function_obj->parent_obj)
+#define parent()        (__function_obj->parent)
 #define scan_context()  (__context)
 
 
diff --git a/libyara/modules/cuckoo.c b/libyara/modules/cuckoo.c
index b426b20..5b2e198 100644
--- a/libyara/modules/cuckoo.c
+++ b/libyara/modules/cuckoo.c
@@ -94,7 +94,7 @@ define_function(network_http_request)
 {
   return_integer(
       http_request(
-          self(),
+          parent(),
           regexp_argument(1),
           METHOD_GET | METHOD_POST));
 }
@@ -104,7 +104,7 @@ define_function(network_http_get)
 {
   return_integer(
       http_request(
-          self(),
+          parent(),
           regexp_argument(1),
           METHOD_GET));
 }
@@ -114,7 +114,7 @@ define_function(network_http_post)
 {
   return_integer(
       http_request(
-          self(),
+          parent(),
           regexp_argument(1),
           METHOD_POST));
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git



More information about the forensics-changes mailing list