Skip to content
Snippets Groups Projects
Commit ce77c5f2 authored by Toby Murray's avatar Toby Murray
Browse files

make a simple vulnerable version

parent 95ab6999
Branches
No related tags found
No related merge requests found
...@@ -64,8 +64,8 @@ static void node_print(const node_t *p){ ...@@ -64,8 +64,8 @@ static void node_print(const node_t *p){
static node_t *node_new(const char *url, const cred_t cred){ static node_t *node_new(const char *url, const cred_t cred){
node_t *new = malloc(sizeof(node_t)); node_t *new = malloc(sizeof(node_t));
assert(new != NULL && "new: malloc failed"); assert(new != NULL && "new: malloc failed");
new->url = strdup(url); //new->url = strdup(url);
assert(new->url != NULL && "new: strdup url failed"); //assert(new->url != NULL && "new: strdup url failed");
new->cred.username = strdup(cred.username); new->cred.username = strdup(cred.username);
assert(new->cred.username != NULL && "new: strdup username failed"); assert(new->cred.username != NULL && "new: strdup username failed");
new->cred.password = strdup(cred.password); new->cred.password = strdup(cred.password);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment