Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Nessus: commits

libnasl/nasl nasl_var.c,1.60,1.61

 

 

Nessus commits RSS feed   Index | Next | Previous | View Threaded


mikhail at nessus

Oct 4, 2006, 4:22 AM

Post #1 of 1 (677 views)
Permalink
libnasl/nasl nasl_var.c,1.60,1.61

Update of /usr/local/cvs/libnasl/nasl
In directory raccoon.nessus.org:/tmp/cvs-serv93760

Modified Files:
nasl_var.c
Log Message:
Prints a warning message if a variable is not found in local or global
contexts.


Index: nasl_var.c
===================================================================
RCS file: /usr/local/cvs/libnasl/nasl/nasl_var.c,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- nasl_var.c 12 Sep 2006 09:43:24 -0000 1.60
+++ nasl_var.c 4 Oct 2006 11:22:36 -0000 1.61
@@ -141,8 +141,10 @@
c->ctx_vars.hash_elt[h] = v;
}
#endif
- return v;
- }
+ if (c != ctxt && c->up_ctxt != NULL)
+ nasl_perror(ctxt, "Variable '%s' found in upper context!\n", name);
+ return v;
+ }
#ifdef SILLY_OPT
else
prev = v;

_______________________________________________
Nessus-cvs mailing list
Nessus-cvs [at] list
http://mail.nessus.org/mailman/listinfo/nessus-cvs

Nessus commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.