| 67 static int nametrans_set_dav_repository(pblock *pb, Session *sn, Request *rq) { |
67 static int nametrans_set_dav_repository(pblock *pb, Session *sn, Request *rq) { |
| 68 char *dav = pblock_findkeyval(pb_key_dav, pb); |
68 char *dav = pblock_findkeyval(pb_key_dav, pb); |
| 69 if(!dav) return 0; |
69 if(!dav) return 0; |
| 70 |
70 |
| 71 ServerConfiguration *config = session_get_config(sn); |
71 ServerConfiguration *config = session_get_config(sn); |
| 72 WebdavRepository *repo = cxMapGet(config->dav, cx_hash_key_str(dav)); |
72 WebdavRepository *repo = cxMapGet(config->dav, dav); |
| 73 |
73 |
| 74 if(!repo) { |
74 if(!repo) { |
| 75 log_ereport(LOG_MISCONFIG, "nametrans: unknown dav repository '%s'", dav); |
75 log_ereport(LOG_MISCONFIG, "nametrans: unknown dav repository '%s'", dav); |
| 76 return REQ_ABORTED; |
76 return REQ_ABORTED; |
| 77 } |
77 } |