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:
10e1d60
)
NULL-ize string variables
author
Miloš Mulač
<mulac@civ.zcu.cz>
Fri, 14 Mar 2008 15:10:27 +0000
(15:10 +0000)
committer
Miloš Mulač
<mulac@civ.zcu.cz>
Fri, 14 Mar 2008 15:10:27 +0000
(15:10 +0000)
set error in case of malformed notifID
org.glite.lb.server/src/notification.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.server/src/notification.c
b/org.glite.lb.server/src/notification.c
index
f3e4e56
..
68584ff
100644
(file)
--- a/
org.glite.lb.server/src/notification.c
+++ b/
org.glite.lb.server/src/notification.c
@@
-614,14
+614,16
@@
static int update_notif(
const char *dest,
const char *valid)
{
- char *nid_s = NULL,
- *host = NULL,
- *stmt, *aux;
- int ret, port;
+ char *nid_s = NULL, *host = NULL,
+ *stmt = NULL, *aux = NULL;
+ int ret, port;
if ( !(nid_s = edg_wll_NotifIdGetUnique(nid)) )
+ {
+ edg_wll_SetError(ctx, EINVAL, "Malformed notification ID.");
goto cleanup;
+ }
/* Format SQL update string
* (Only the owner could update the notification registration)