From: Denis Kenzior Date: Wed, 18 Nov 2009 22:34:06 +0000 (-0600) Subject: Fix: Send username and password properly X-Git-Tag: 0.11~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ef8ac717438f2cedd51562f40b577cebe15a25b;p=platform%2Fupstream%2Fofono.git Fix: Send username and password properly --- diff --git a/drivers/hsomodem/gprs-context.c b/drivers/hsomodem/gprs-context.c index 52b7e91..a08dc8b 100644 --- a/drivers/hsomodem/gprs-context.c +++ b/drivers/hsomodem/gprs-context.c @@ -145,10 +145,10 @@ static void hso_gprs_activate_primary(struct ofono_gprs_context *gc, cbd->user = gc; - if (ctx->username && ctx->password) + if (ctx->username[0] && ctx->password[0]) sprintf(buf, "AT$QCPDPP=%u,1,\"%s\",\"%s\"", ctx->cid, ctx->username, ctx->password); - else if (ctx->password) + else if (ctx->password[0]) sprintf(buf, "AT$QCPDPP=%u,2,,\"%s\"", ctx->cid, ctx->password); else