From d048682510c5510223b5d0f2a4c8f6c0e6a3b6f7 Mon Sep 17 00:00:00 2001
From: Toby Murray <toby.murray@unimelb.edu.au>
Date: Mon, 16 Sep 2019 16:36:17 +1000
Subject: [PATCH] Revert "make a simple vulnerable version"

This reverts commit ce77c5f2c39d8aa6f08b8a0a9a1f30898e93827b.
---
 src/vuln-1/passbook.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/vuln-1/passbook.c b/src/vuln-1/passbook.c
index ac3272b..2a2ae56 100644
--- a/src/vuln-1/passbook.c
+++ b/src/vuln-1/passbook.c
@@ -64,8 +64,8 @@ static void node_print(const node_t *p){
 static node_t *node_new(const char *url, const cred_t cred){
   node_t *new = malloc(sizeof(node_t));
   assert(new != NULL && "new: malloc failed");
-  //new->url = strdup(url);
-  //assert(new->url != NULL && "new: strdup url failed");
+  new->url = strdup(url);
+  assert(new->url != NULL && "new: strdup url failed");
   new->cred.username = strdup(cred.username);
   assert(new->cred.username != NULL && "new: strdup username failed");  
   new->cred.password = strdup(cred.password);
-- 
GitLab