Project

General

Profile

Actions

Bug #4303

open

various minor issues about evaluation of rc = db_subscr_get_by_*()

Added by neels over 4 years ago. Updated over 4 years ago.

Status:
New
Priority:
Low
Assignee:
-
Target version:
-
Start date:
12/03/2019
Due date:
% Done:

0%

Spec Reference:

Description

vty function 'subscriber imsi IDENT create':

We create the subscriber, and then db_subscr_get_by_imsi(), which might produce an error.
It's unlikely since creationg rc is evaluated just before that, but still.
If the rc returns an error, we should echo that to the VTY user.

        rc = db_subscr_get_by_imsi(g_hlr->dbc, imsi, &subscr);
        vty_out(vty, "%% Created subscriber %s%s", imsi, VTY_NEWLINE);

        subscr_dump_full_vty(vty, &subscr);

        return CMD_SUCCESS;
}
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)