Changeset 5021 for trunk/module-newcamd.c
- Timestamp:
- 04/15/11 22:00:03 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/module-newcamd.c
r4994 r5021 576 576 static void newcamd_auth_client(in_addr_t ip, uint8_t *deskey) 577 577 { 578 int32_t i, ok ;578 int32_t i, ok, rc; 579 579 uchar *usr = NULL, *pwd = NULL; 580 580 char *client_name = NULL; … … 639 639 char e_txt[20]; 640 640 snprintf(e_txt, 20, "%s:%d", ph[cl->ctyp].desc, cfg.ncd_ptab.ports[cl->port_idx].s_port); 641 if( cs_auth_client(cl, account, e_txt) == 2) {641 if((rc = cs_auth_client(cl, account, e_txt)) == 2) { 642 642 cs_log("hostname or ip mismatch for user %s (%s)", usr, client_name); 643 break; 644 } 645 else if (rc != 0) 646 { 647 cs_log("account is invalid for user %s (%s)", usr, client_name); 643 648 break; 644 649 }
Note:
See TracChangeset
for help on using the changeset viewer.