protocol

protocol tests
Log | Files | Refs | Submodules | README | git clone https://git.ne02ptzero.me/git/protocol

commit 13cbda83f09f8e79a07dc096a1922868bfce6462
parent 23213dbcfa53908e3b4e1e049a1e6a92e3ca676d
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Thu, 16 Mar 2017 18:06:25 +0100

Fix(Package)

Diffstat:
Msrc/package.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/package.c b/src/package.c @@ -10,7 +10,7 @@ void *pkg_build_auth(size_t *size, int major_version, int minor_version) { pkg = malloc(sizeof(package_t)); pkg->type = PKG_TYPE_AUTH; pkg->payload = NULL; - pkg->size = 0; + pkg->number = 1; list_add(pkg->payload, auth, sizeof(auth_t)); return write_package(pkg, size); }