r9712: Bunch of small fixes
[sfrench/samba-autobuild/.git] / source4 / lib / samba3 / tdbsam.c
index 23e68717c7d02cc2281ac294f426569c8ceb6a58..c9b121ca774d176fa781e664ce64ef48230de583 100644 (file)
@@ -271,6 +271,7 @@ NTSTATUS samba3_read_tdbsam(const char *filename, TALLOC_CTX *ctx, struct samba3
                        case 0: ret = init_sam_from_buffer_v0(tdb, &(*accounts)[*count], val); break;
                        case 1: ret = init_sam_from_buffer_v1(tdb, &(*accounts)[*count], val); break;
                        case 2: ret = init_sam_from_buffer_v2(tdb, &(*accounts)[*count], val); break;
                        case 0: ret = init_sam_from_buffer_v0(tdb, &(*accounts)[*count], val); break;
                        case 1: ret = init_sam_from_buffer_v1(tdb, &(*accounts)[*count], val); break;
                        case 2: ret = init_sam_from_buffer_v2(tdb, &(*accounts)[*count], val); break;
+                       default: ret = False; break;
 
                }
 
 
                }