projects
/
simpleserver-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8425bcc
)
Dont hv_store NULL user,passwd in bend_init
author
Adam Dickmeiss
<adam@indexdata.dk>
Sun, 9 Apr 2006 21:23:10 +0000
(21:23 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Sun, 9 Apr 2006 21:23:10 +0000
(21:23 +0000)
SimpleServer.xs
patch
|
blob
|
history
diff --git
a/SimpleServer.xs
b/SimpleServer.xs
index
c945f50
..
9cb84a6
100644
(file)
--- a/
SimpleServer.xs
+++ b/
SimpleServer.xs
@@
-1,5
+1,5
@@
/*
/*
- * $Id: SimpleServer.xs,v 1.37 2006-03-09 17:13:43 mike Exp $
+ * $Id: SimpleServer.xs,v 1.38 2006-04-09 21:23:10 adam Exp $
* ----------------------------------------------------------------------
*
* Copyright (c) 2000-2004, Index Data.
* ----------------------------------------------------------------------
*
* Copyright (c) 2000-2004, Index Data.
@@
-1253,8
+1253,10
@@
bend_initresult *bend_init(bend_initrequest *q)
passwd = q->auth->u.idPass->password;
}
/* ### some code paths have user/password unassigned here */
passwd = q->auth->u.idPass->password;
}
/* ### some code paths have user/password unassigned here */
- hv_store(href, "USER", 4, newSVpv(user, 0), 0);
- hv_store(href, "PASS", 4, newSVpv(passwd, 0), 0);
+ if (user)
+ hv_store(href, "USER", 4, newSVpv(user, 0), 0);
+ if (passwd)
+ hv_store(href, "PASS", 4, newSVpv(passwd, 0), 0);
}
PUSHMARK(sp);
}
PUSHMARK(sp);