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:
5e8a766
)
avoid unnecessary coredump and try some error guess
author
Aleš Křenek
<ljocha@ics.muni.cz>
Fri, 11 Nov 2005 09:39:05 +0000
(09:39 +0000)
committer
Aleš Křenek
<ljocha@ics.muni.cz>
Fri, 11 Nov 2005 09:39:05 +0000
(09:39 +0000)
org.glite.jp.primary/src/is_client.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.jp.primary/src/is_client.c
b/org.glite.jp.primary/src/is_client.c
index
d2d3f0d
..
5a0159b
100644
(file)
--- a/
org.glite.jp.primary/src/is_client.c
+++ b/
org.glite.jp.primary/src/is_client.c
@@
-108,9
+108,15
@@
int glite_jpps_single_feed(
err.code = EIO;
err.source = __FUNCTION__;
err.desc = buf;
- snprintf(buf,sizeof buf,"%s %s\n",
+ memset(buf, 0, sizeof(buf));
+ if (ctx->other_soap->fault) {
+ snprintf(buf,sizeof buf,"%s %s\n",
ctx->other_soap->fault->faultcode,
ctx->other_soap->fault->faultstring);
+ }
+ else {
+ sprintf(buf,"No detailed error description (JP IS not running?)\n");
+ }
buf[999] = 0;
glite_jp_stack_error(ctx,&err);
}