Changeset 3998
- Timestamp:
- 11/26/10 13:00:07 (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/globals.h
r3953 r3998 1338 1338 extern int chk_ctab(ushort caid, CAIDTAB *ctab); 1339 1339 extern int chk_srvid_match_by_caid_prov(ushort caid, ulong provid, SIDTAB *sidtab); 1340 extern int chk_srvid_by_caid_prov(struct s_client *, ushort caid, ulong provid );1340 extern int chk_srvid_by_caid_prov(struct s_client *, ushort caid, ulong provid, int chk_neg); 1341 1341 extern void kill_thread(struct s_client *cl); 1342 1342 extern int get_threadnum(struct s_client *client); -
trunk/oscam-chk.c
r3654 r3998 69 69 } 70 70 71 int chk_srvid_by_caid_prov(struct s_client *cl, ushort caid, ulong provid ) {71 int chk_srvid_by_caid_prov(struct s_client *cl, ushort caid, ulong provid, int chk_neg) { 72 72 int nr, rc=0; 73 73 SIDTAB *sidtab; … … 75 75 if (!cl->sidtabok) 76 76 { 77 if ( !cl->sidtabno) return(1);77 if (chk_neg && !cl->sidtabno) return(1); 78 78 rc=1; 79 79 } … … 81 81 if (sidtab->num_caid | sidtab->num_provid | sidtab->num_srvid) 82 82 { 83 if ( (cl->sidtabno&((SIDTABBITS)1<<nr)) &&83 if (chk_neg && (cl->sidtabno&((SIDTABBITS)1<<nr)) && 84 84 (chk_srvid_match_by_caid_prov(caid, provid, sidtab))) 85 85 return(0);
Note:
See TracChangeset
for help on using the changeset viewer.