This is an automated email from the git hooks/post-receive script.
rharwood pushed a change to branch master in repository gssproxy.
from d31d099 Support matching based on executable name new afe4c2f Tolerate NULL pointers in gp_same
The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference.
Summary of changes: proxy/src/gp_util.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
This is an automated email from the git hooks/post-receive script.
rharwood pushed a commit to branch master in repository gssproxy.
commit afe4c2fe6f7f939df914959dda11131bd80ccec6 Author: Robbie Harwood rharwood@redhat.com Date: Tue Jun 13 14:22:44 2017 -0400
Tolerate NULL pointers in gp_same
Fixes potential NULL derefs of program names
Signed-off-by: Robbie Harwood rharwood@redhat.com Reviewed-by: Simo Sorce simo@redhat.com Merges: #195 --- proxy/src/gp_util.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/proxy/src/gp_util.c b/proxy/src/gp_util.c index f158b84..5442992 100644 --- a/proxy/src/gp_util.c +++ b/proxy/src/gp_util.c @@ -12,10 +12,9 @@
bool gp_same(const char *a, const char *b) { - if ((a == b) || strcmp(a, b) == 0) { + if (a == b || (a && b && strcmp(a, b) == 0)) { return true; } - return false; }
gss-proxy@lists.fedorahosted.org