diff options
Diffstat (limited to 'nscd/connections.c')
-rw-r--r-- | nscd/connections.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/nscd/connections.c b/nscd/connections.c index b95ab05b3a..fe33c76bcf 100644 --- a/nscd/connections.c +++ b/nscd/connections.c @@ -83,7 +83,8 @@ const char *serv2str[LASTREQ] = [INVALIDATE] = "INVALIDATE", [GETFDPW] = "GETFDPW", [GETFDGR] = "GETFDGR", - [GETFDHST] = "GETFDHST" + [GETFDHST] = "GETFDHST", + [GETAI] = "GETAI" }; /* The control data structures for the services. */ @@ -151,6 +152,7 @@ static struct database_dyn *const serv2db[LASTREQ] = [GETFDPW] = &dbs[pwddb], [GETFDGR] = &dbs[grpdb], [GETFDHST] = &dbs[hstdb], + [GETAI] = &dbs[hstdb], }; @@ -592,8 +594,9 @@ cannot handle old request version %d; current version is %d"), struct database_dyn *db = serv2db[req->type]; - if (__builtin_expect (req->type, GETPWBYNAME) >= GETPWBYNAME - && __builtin_expect (req->type, LASTDBREQ) <= LASTDBREQ) + if ((__builtin_expect (req->type, GETPWBYNAME) >= GETPWBYNAME + && __builtin_expect (req->type, LASTDBREQ) <= LASTDBREQ) + || req->type == GETAI) { if (__builtin_expect (debug_level, 0) > 0) { @@ -702,6 +705,10 @@ cannot handle old request version %d; current version is %d"), addhstbyaddrv6 (db, fd, req, key, uid); break; + case GETAI: + addhstai (db, fd, req, key, uid); + break; + case GETSTAT: case SHUTDOWN: case INVALIDATE: |