git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
134eb5d
)
Check that the response from gsoap call is not empty, to prevent possible crash ...
author
František Dvořák
<valtri@civ.zcu.cz>
Sun, 27 Nov 2011 18:04:42 +0000
(18:04 +0000)
committer
František Dvořák
<valtri@civ.zcu.cz>
Sun, 27 Nov 2011 18:04:42 +0000
(18:04 +0000)
org.gridsite.core/src/htproxyput.c
patch
|
blob
|
blame
|
history
diff --git
a/org.gridsite.core/src/htproxyput.c
b/org.gridsite.core/src/htproxyput.c
index
dea36fd
..
031a502
100644
(file)
--- a/
org.gridsite.core/src/htproxyput.c
+++ b/
org.gridsite.core/src/htproxyput.c
@@
-335,6
+335,12
@@
int main(int argc, char *argv[])
return 1;
}
+ if (!getNewProxyReqResponse.getNewProxyReqReturn)
+ {
+ fprintf(stderr, "Empty response from getNewProxyReq\n");
+ return 1;
+ }
+
reqtxt = getNewProxyReqResponse.getNewProxyReqReturn->proxyRequest;
delegation_id =
getNewProxyReqResponse.getNewProxyReqReturn->delegationID;