Skip to content

Commit

Permalink
"Thou shalt not follow the NULL pointer, for chaos and madness await
Browse files Browse the repository at this point in the history
thee at its end."
  • Loading branch information
Linus Nordberg committed Nov 15, 2010
1 parent 2eb56ca commit 7deb518
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions radsecproxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -2417,10 +2417,12 @@ struct modattr *extractmodattr(char *nameval) {
struct rewrite *getrewrite(char *alt1, char *alt2) {
struct rewrite *r;

if ((r = hash_read(rewriteconfs, alt1, strlen(alt1))))
return r;
if ((r = hash_read(rewriteconfs, alt2, strlen(alt2))))
return r;
if (alt1)
if ((r = hash_read(rewriteconfs, alt1, strlen(alt1))))
return r;
if (alt2)
if ((r = hash_read(rewriteconfs, alt2, strlen(alt2))))
return r;
return NULL;
}

Expand Down

0 comments on commit 7deb518

Please sign in to comment.