/* Format notification ID
*/
- if ( !(nid_s = edg_wll_NotifIdGetUnique(nid)) )
+ if ( !(nid_s = edg_wll_NotifIdGetUnique(nid)) ) {
+ edg_wll_SetError(ctx, EINVAL, "Malformed notification ID");
goto err;
+ }
do {
if (edg_wll_Transaction(ctx) != 0) goto err;
return edg_wll_Error(ctx, NULL, NULL);
}
- if ( !(nid_s = edg_wll_NotifIdGetUnique(nid)) )
+ if ( !(nid_s = edg_wll_NotifIdGetUnique(nid)) ) {
+ edg_wll_SetError(ctx, EINVAL, "Malformed notification ID");
goto cleanup;
+ }
trio_asprintf(&stmt,
"select destination from notif_registrations "
if ( !(nid_s = edg_wll_NotifIdGetUnique(nid)) )
{
- edg_wll_SetError(ctx, EINVAL, "Malformed notification ID.");
+ edg_wll_SetError(ctx, EINVAL, "Malformed notification ID");
goto cleanup;
}
errCode = edg_wll_Error(ctx, NULL, &errDesc);
- if ( !(nid_s = edg_wll_NotifIdGetUnique(nid)) )
+ if ( !(nid_s = edg_wll_NotifIdGetUnique(nid)) ) {
+ edg_wll_SetError(ctx, EINVAL, "Malformed notification ID");
goto rollback;
+ }
trio_asprintf(&stmt, "delete from notif_registrations where notifid='%|Ss'", nid_s);
glite_common_log_msg(LOG_CATEGORY_LB_SERVER_DB, LOG_PRIORITY_DEBUG, stmt);
*q = NULL;
int ret;
- if ( !(nid_s = edg_wll_NotifIdGetUnique(nid)) )
+ if ( !(nid_s = edg_wll_NotifIdGetUnique(nid)) ) {
+ edg_wll_SetError(ctx, EINVAL, "Malformed notification ID");
goto cleanup;
+ }
glite_lbu_TimeToStr(now, &time_s);
if ( !time_s )